Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CI): GitHub deprecated v1 use docker compose instead of docker-compose #51

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

SamuelLarkin
Copy link
Contributor

@SamuelLarkin SamuelLarkin commented Nov 19, 2024

Our PAT had expired and after updating it, the workflow was failing on docker-compose.
docker-compose is deprecated since around 2024-04-01 in github workflows
version is obsolete and generated an unnecessary warning.
docker compose generates a slightly different image name.

…m, e.g., docker-compose build to docker compose build (remove the dash)
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to find the new image's name.

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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-web instead of _web

@SamuelLarkin SamuelLarkin merged commit dd72327 into dev/ilt Nov 20, 2024
1 check passed
@SamuelLarkin SamuelLarkin deleted the dev.sl/workflow_docker branch November 20, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant