Skip to content

Commit

Permalink
fix(ci): update Makefile to docker compose v2 (#1347)
Browse files Browse the repository at this point in the history
* fix(ci): update to docker compose v2

Signed-off-by: Brandt Keller <[email protected]>

* fix(ci): test file to reproduce issue

Signed-off-by: Brandt Keller <[email protected]>

* fix(ci): revert tested changes and remove obsolete version

Signed-off-by: Brandt Keller <[email protected]>

* fix(ci): update checkout action and pin to checksum

Signed-off-by: Brandt Keller <[email protected]>

---------

Signed-off-by: Brandt Keller <[email protected]>
  • Loading branch information
brandtkeller authored Aug 15, 2024
1 parent bd48bea commit ba3732f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sig-sec-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:
Setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup
run: make setup
Lint:
runs-on: ubuntu-latest
needs: Setup
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Lint
run: make lint
Spelling:
runs-on: ubuntu-latest
needs: Setup
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Spelling
run: make spelling
Links:
runs-on: ubuntu-latest
needs: Setup
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Links
run: make links
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ all: setup lint spelling links
.PHONY: setup
setup:
@echo "Running $@...\n\n"
@docker-compose run $@ ci/$@.sh
@docker-compose down
@docker compose run $@ ci/$@.sh
@docker compose down

.PHONY: lint
lint:
@echo "Running $@...\n\n"
@docker-compose run $@ ci/$@.sh
@docker-compose down
@docker compose run $@ ci/$@.sh
@docker compose down

.PHONY: spelling
spelling:
@echo "Running $@...\n\n"
@docker-compose run $@ ci/$@.sh
@docker-compose down
@docker compose run $@ ci/$@.sh
@docker compose down

.PHONY: links
links:
@echo "Running $@...\n\n"
@docker-compose run $@ ci/$@.sh
@docker-compose down
@docker compose run $@ ci/$@.sh
@docker compose down

1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
version: '2'
services:
setup:
image: node:18
Expand Down

0 comments on commit ba3732f

Please sign in to comment.