Skip to content

Commit

Permalink
edit action to get latest container tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrizzell01 committed Dec 2, 2024
1 parent 83f6122 commit fd34f96
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,17 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Update docker-compose.yml with new image tag
if: success()
run: |
sed -i "s|image: brizzell/mushroom_classifier_env:.*|image: brizzell/mushroom_classifier_env:${{ steps.meta.outputs.version }}|" docker-compose.yml
- name: Commit and push updated docker-compose.yml
if: success()
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docker-compose.yml
git commit -m "Update docker-compose.yml with new image tag"
git push

0 comments on commit fd34f96

Please sign in to comment.