From 2147e6bf7ee009959ed64a9f6dafe4eb9f17307f Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 16 Mar 2022 09:13:00 +0000 Subject: [PATCH] set context using path and checkout --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02e1bcbf..c87cbd28 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,13 +46,15 @@ jobs: env: name: jburel/omero-web-standalone nameParent: jburel/omero-web:latest + folder: standalone steps: + - uses: actions/checkout@v2 - name: Get other tags id: gettags uses: jupyterhub/action-major-minor-tag-calculator@v2.0.0 with: githubToken: ${{ secrets.GITHUB_TOKEN }} - prefix: "${{ env.name}}:" + prefix: "${{ env.name }}:" - name: Login to DockerHub uses: docker/login-action@v1 with: @@ -61,6 +63,8 @@ jobs: - name: Push to Docker Hub uses: docker/build-push-action@v2 with: - build-args: "PARENT_IMAGE=${{ env.nameParent }}" + build-args: | + "PARENT_IMAGE=${{ env.nameParent }}" + context: ${{ env.folder }} tags: ${{ join(fromJson(steps.gettags.outputs.tags)) }} push: true