Skip to content

Commit

Permalink
Update docker compose syntax to v2+
Browse files Browse the repository at this point in the history
As per https://github.blog/changelog/2024-04-10-github-hosted-runner-images-deprecation-notice-docker-compose-v1/,
I saw build failures in github action along the lines of:

    docker-compose: command not found
  • Loading branch information
spikeheap committed Oct 1, 2024
1 parent 65c720c commit 3d9e1d4
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows-template/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-<PACKAGE_NAME_LOWERCASE>-test
run: docker compose build hackney-core-<PACKAGE_NAME_LOWERCASE>-test
- name: Run tests
run: docker-compose run hackney-core-<PACKAGE_NAME_LOWERCASE>-test
run: docker compose run hackney-core-<PACKAGE_NAME_LOWERCASE>-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Authorization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-authorization-test
run: docker compose build hackney-core-authorization-test
- name: Run tests
run: docker-compose run hackney-core-authorization-test
run: docker compose run hackney-core-authorization-test

publish-authorization-package:
name: Publish Authorization Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.DynamoDb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-dynamodb-test
run: docker compose build hackney-core-dynamodb-test
- name: Run tests
run: docker-compose run hackney-core-dynamodb-test
run: docker compose run hackney-core-dynamodb-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.ElasticSearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-elasticsearch-test
run: docker compose build hackney-core-elasticsearch-test
- name: Run tests
run: docker-compose run hackney-core-elasticsearch-test
run: docker compose run hackney-core-elasticsearch-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Enums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-enums-test
run: docker compose build hackney-core-enums-test
- name: Run tests
run: docker-compose run hackney-core-enums-test
run: docker compose run hackney-core-enums-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.HealthCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-healthcheck-test
run: docker compose build hackney-core-healthcheck-test
- name: Run tests
run: docker-compose run hackney-core-healthcheck-test
run: docker compose run hackney-core-healthcheck-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-http-test
run: docker compose build hackney-core-http-test
- name: Run tests
run: docker-compose run hackney-core-http-test
run: docker compose run hackney-core-http-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.JWT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-jwt-test
run: docker compose build hackney-core-jwt-test
- name: Run tests
run: docker-compose run hackney-core-jwt-test
run: docker compose run hackney-core-jwt-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-logging-test
run: docker compose build hackney-core-logging-test
- name: Run tests
run: docker-compose run hackney-core-logging-test
run: docker compose run hackney-core-logging-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Middleware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-middleware-test
run: docker compose build hackney-core-middleware-test
- name: Run tests
run: docker-compose run hackney-core-middleware-test
run: docker compose run hackney-core-middleware-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Sns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-sns-test
run: docker compose build hackney-core-sns-test
- name: Run tests
run: docker-compose run hackney-core-sns-test
run: docker compose run hackney-core-sns-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Validation.AspNet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-validation-aspnet-test
run: docker compose build hackney-core-validation-aspnet-test
- name: Run tests
run: docker-compose run hackney-core-validation-aspnet-test
run: docker compose run hackney-core-validation-aspnet-test

publish-package:
name: Publish Package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Hackney.Core.Validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker-compose build hackney-core-validation-test
run: docker compose build hackney-core-validation-test
- name: Run tests
run: docker-compose run hackney-core-validation-test
run: docker compose run hackney-core-validation-test

publish-package:
name: Publish Package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Hackney.Shared.Strings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Build
# run: docker-compose build hackney-shared-strings
# run: docker compose build hackney-shared-strings

publish-package:
name: Publish Package
Expand Down

0 comments on commit 3d9e1d4

Please sign in to comment.