diff --git a/.github/workflows/ondemand.yml b/.github/workflows/ondemand.yml index 8c92707..081a78a 100644 --- a/.github/workflows/ondemand.yml +++ b/.github/workflows/ondemand.yml @@ -27,6 +27,7 @@ jobs: - name: Set a tag based on the date run: | echo IMAGE_TAG=$(date +"%Y%m%d") >> $GITHUB_ENV + echo "Image tag is $IMAGE_TAG or ${{ env.IMAGE_TAG }}" - name: Determine latest release of ondemand id: getlatestrelease @@ -40,6 +41,7 @@ jobs: with: repository: 'OSC/ondemand' ref: '${{ env.RELEASE }}' + path: 'ondemand' - name: Build Image uses: redhat-actions/buildah-build@v2 @@ -47,7 +49,8 @@ jobs: with: tags: latest ${{ github.sha }} ${{ env.IMAGE_TAG }} ${{ env.RELEASE }} image: ondemand - containerfiles: "./Containerfile" + containerfiles: ondemand/Containerfile + context: ondemand - name: Print image name and tags run: echo "Image ${{ steps.build-image.outputs.image }} build with tags ${{ steps.build-image.outputs.tags }}" >> $GITHUB_STEP_SUMMARY