Branch-specific image tagging #8

Merged
asohh merged 6 commits from pwd into container 2025-10-13 20:15:49 +02:00
Collaborator

Currently, any pull request triggers a Docker image push to latest. Once production uses latest, that would result in any opened pull request publishing unreviewed changes.

With this PR, the workflow always builds and pushes Docker tags named like the git branch, but only main git branch pushes result in Docker image updates to latest.

Also removes the deprecated version parameter from the Docker Compose file.

Currently, any pull request triggers a Docker image push to `latest`. Once production uses `latest`, that would result in any opened pull request publishing unreviewed changes. With this PR, the workflow always builds and pushes Docker tags named like the git branch, but only `main` git branch pushes result in Docker image updates to `latest`. Also removes the deprecated `version` parameter from the Docker Compose file.
fix: Adds working directory to build steps
All checks were successful
Build Hello World Image / build (push) Successful in 35s
5eec2d3188
fix: Removes deprecated version parameter
All checks were successful
Build Hello World Image / build (push) Successful in 35s
6c923de5ac
feat: Tags built images branch-specific, to prevent production overrides from branches
All checks were successful
Build Hello World Image / build (push) Successful in 46s
f40692b483
refactor: Limits docker image pushing to git pushes to main branch
All checks were successful
Build (and tag) Images / build (push) Successful in 35s
3aeb91101d
fix: Enables image pushing for any git branch push
All checks were successful
Build (and tag) Images / build (push) Successful in 35s
1e6f858426
fix: Enables CI/CD for any branch push
All checks were successful
Build (and tag) Images / build (push) Successful in 35s
Build (and tag) Images / build (pull_request) Successful in 36s
ea4063917b
asohh merged commit 8d5b74a773 into container 2025-10-13 20:15:49 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: CCCHH/sunders#8
No description provided.