From c5f4490c667f8e1d7b9e30bbd4ab481bc363c694 Mon Sep 17 00:00:00 2001 From: Yannic Hock Date: Thu, 19 Sep 2024 11:33:06 +0200 Subject: [PATCH 1/3] Update docker-build.yml --- .github/workflows/docker-build.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 3ec3ae34..e353b91b 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -103,6 +103,16 @@ jobs: name: Create Dockerimage runs-on: ubuntu-latest steps: + - + uses: actions/checkout@v2 + - + name: Overwrite file + uses: "DamianReeves/write-file-action@master" + with: + path: .env + write-mode: overwrite + contents: | + ${{ steps.meta.outputs.tags }} - name: Setup docker metadata id: meta @@ -125,13 +135,9 @@ jobs: 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: Get commit Hash + id: commit + uses: pr-mpt/actions-commit-hash@v1 - name: Build and push uses: docker/build-push-action@v2 From d7201c165a4e03a182f0f5367f8bd0073bb8ad74 Mon Sep 17 00:00:00 2001 From: Yannic Hock Date: Thu, 19 Sep 2024 11:34:32 +0200 Subject: [PATCH 2/3] Update docker-build.yml --- .github/workflows/docker-build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index e353b91b..fd16f9c7 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -103,6 +103,10 @@ 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 - @@ -112,7 +116,7 @@ jobs: path: .env write-mode: overwrite contents: | - ${{ steps.meta.outputs.tags }} + ${{ steps.commit.outputs.short }} - name: Setup docker metadata id: meta @@ -134,10 +138,6 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Get commit Hash - id: commit - uses: pr-mpt/actions-commit-hash@v1 - name: Build and push uses: docker/build-push-action@v2 From 2f52a83353fd246c0f6c5a2457ec0e70cae210b9 Mon Sep 17 00:00:00 2001 From: Yannic Hock Date: Thu, 19 Sep 2024 12:01:37 +0200 Subject: [PATCH 3/3] Update docker-build.yml --- .github/workflows/docker-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index fd16f9c7..30e22be8 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -142,6 +142,7 @@ jobs: name: Build and push uses: docker/build-push-action@v2 with: + context: . push: true tags: ${{ steps.meta.outputs.tags }} secrets: |