Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannic Hock committed Sep 19, 2024
2 parents 5fabb7d + 2f52a83 commit 24e1b49
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@ jobs:
name: Create Dockerimage
runs-on: ubuntu-latest
steps:
-
name: Get commit Hash
id: commit
uses: pr-mpt/actions-commit-hash@v1
-
uses: actions/checkout@v2
-
name: Overwrite file
uses: "DamianReeves/write-file-action@master"
with:
path: .env
write-mode: overwrite
contents: |
${{ steps.commit.outputs.short }}
-
name: Setup docker metadata
id: meta
Expand All @@ -124,18 +138,11 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Overwrite file
uses: "DamianReeves/write-file-action@master"
with:
path: .env
write-mode: overwrite
contents: |
${{ steps.meta.outputs.tags }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
secrets: |
Expand Down

0 comments on commit 24e1b49

Please sign in to comment.