Skip to content

Commit

Permalink
Refactor Docker CI workflow by removing unnecessary git commit and ta…
Browse files Browse the repository at this point in the history
…g steps to streamline the process
  • Loading branch information
joachimmueller committed Dec 29, 2024
1 parent 1402437 commit 7fbd6f3
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,6 @@ jobs:
COMMIT=$(echo "${{ steps.get_commit.outputs.commit }}")
sed -i "\$a<!-- Version: $VERSION, Commit ID: $COMMIT -->" views/index.ejs
- name: Commit changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add views/index.ejs
git commit -m "Add version and commit ID"
git push
- name: Delete existing tag
if: steps.get_version.outputs.version != 'no-tag'
run: |
VERSION=$(echo "${{ steps.get_version.outputs.version }}")
git tag -d $VERSION || true
git push origin :refs/tags/$VERSION || true
- name: Create and push new tag
run: |
VERSION=$(echo "${{ steps.get_version.outputs.version }}")
if [ "$VERSION" != "no-tag" ]; then
NEW_TAG="${VERSION}-$(date +'%Y%m%d%H%M%S')"
git tag $NEW_TAG
git push origin $NEW_TAG
fi
- name: Docker meta
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
Expand Down

0 comments on commit 7fbd6f3

Please sign in to comment.