Skip to content

Commit

Permalink
fix(CI): GitHub deprecated v1, and you need to change the command fro…
Browse files Browse the repository at this point in the history
…m, e.g., docker-compose build to docker compose build (remove the dash)
  • Loading branch information
SamuelLarkin committed Nov 20, 2024
1 parent 18db289 commit dd72327
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
IMAGE_TAG: prod-${{ github.sha }}
run: |
echo "image_tag=$IMAGE_TAG" >> $GITHUB_OUTPUT
CURRENT_UID=$(id -u):$(id -g) docker-compose --project-name "common-voice" -f "docker-compose.yaml" build web
docker tag common-voice_web:latest $REGISTRY/$REPOSITORY:$IMAGE_TAG
CURRENT_UID=$(id -u):$(id -g) docker compose --project-name "common-voice" -f "docker-compose.yaml" build web
docker image ls
docker tag common-voice-web:latest $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
- name: Repository dispatch to trigger deployment
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/stage-deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
IMAGE_TAG: stage-${{ github.sha }}
run: |
echo "image_tag=$IMAGE_TAG" >> $GITHUB_OUTPUT
CURRENT_UID=$(id -u):$(id -g) docker-compose --project-name "common-voice" -f "docker-compose.yaml" build web
docker tag common-voice_web:latest $REGISTRY/$REPOSITORY:$IMAGE_TAG
CURRENT_UID=$(id -u):$(id -g) docker compose --project-name "common-voice" -f "docker-compose.yaml" build web
docker image ls
docker tag common-voice-web:latest $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
- name: Repository dispatch to trigger deployment
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# wget 'https://github.com/docker/compose-cli/releases/download/v1.0.29/docker-linux-amd64'
# CURRENT_UID=$(id -u):$(id -g) ./docker-linux-amd64 --context ecs.common-voice compose --project-name common-voice up

version: '3'

services:
web:
ports:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
db:
image: mysql:5.7.28
Expand Down

0 comments on commit dd72327

Please sign in to comment.