From 117b3a430a95bd8a4e331abeb2411de4fbd7b010 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:22:06 +0200 Subject: [PATCH] Fix context/paths of actions --- .github/workflows/docker-dev.yaml | 7 ++++--- .github/workflows/docker.yaml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-dev.yaml b/.github/workflows/docker-dev.yaml index 9c8c171..b664a5d 100644 --- a/.github/workflows/docker-dev.yaml +++ b/.github/workflows/docker-dev.yaml @@ -15,7 +15,8 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}-dev CONTEXT: . - DOCKERFILE: /ckan-pycsw/Dockerfile.dev + DOCKERFILE_PATH: /ckan-pycsw + DOCKERFILE: Dockerfile.dev jobs: docker: @@ -52,12 +53,12 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} context: ${{ env.CONTEXT }} - file: ${{ env.DOCKERFILE }} + file: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }} - name: Scan image uses: ISID/build-and-scan-image@v0.4.2 with: tag: ${{ env.IMAGE_NAME }} - path: ${{ env.CONTEXT }} + path: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }} dockerfile: ${{ env.DOCKERFILE }} \ No newline at end of file diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 04ccd52..12450d0 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -15,7 +15,8 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} CONTEXT: . - DOCKERFILE: /ckan-pycsw/Dockerfile + DOCKERFILE_PATH: /ckan-pycsw + DOCKERFILE: Dockerfile jobs: docker: @@ -52,12 +53,12 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} context: ${{ env.CONTEXT }} - file: ${{ env.DOCKERFILE }} + file: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }}/${{ env.DOCKERFILE }} - name: Scan image uses: ISID/build-and-scan-image@v0.4.2 with: tag: ${{ env.IMAGE_NAME }} - path: ${{ env.CONTEXT }} + path: ${{ env.CONTEXT }}${{ env.DOCKERFILE_PATH }} dockerfile: ${{ env.DOCKERFILE }} \ No newline at end of file