From ba256397d0d84f8b81cf5cbf93ac4181eca9a555 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 26 Mar 2023 18:33:48 +0200 Subject: [PATCH] =?UTF-8?q?CI:=20fix=20Docker=20build=20&=20push=20?= =?UTF-8?q?=F0=9F=92=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7e55595..de2c13b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -34,13 +34,11 @@ jobs: - name: build Docker image & push to Docker Hub uses: docker/build-push-action@v3 with: + context: . push: true tags: | derhuerst/db-rest:6 derhuerst/db-rest:latest - # https://docs.docker.com/build/ci/github-actions/examples/#github-cache - cache-from: type=gha - cache-to: type=gha,mode=max,oci-mediatypes=true,compression=zstd # this is for the public-transport/infrastructure cluster - name: log in to GitHub Container Registry @@ -58,8 +56,6 @@ jobs: - name: push Docker image to GitHub Registry uses: docker/build-push-action@v3 with: + context: . push: true tags: ghcr.io/${{github.repository}}:v6_${{steps.hash.outputs.hash}}_${{steps.datetime.outputs.datetime}} - # https://docs.docker.com/build/ci/github-actions/examples/#github-cache - cache-from: type=gha - cache-to: type=gha,mode=max,oci-mediatypes=true,compression=zstd