Skip to content

Commit

Permalink
fix bug in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tocean committed Feb 28, 2024
1 parent bbff5b4 commit 36e4577
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
permissions:
contents: read
packages: write
env:
work_dir: buildimage
strategy:
matrix:
include:
Expand All @@ -33,7 +31,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
path: ${{ work_dir }}
path: buildimage
- name: Free disk space
run: |
mkdir -p /tmp/emptydir
Expand All @@ -57,7 +55,7 @@ jobs:
if [[ "${{ github.event_name }}" == "release" ]]; then
TAGS=$(sed "s/main/${GITHUB_REF##*/}/g" <<< ${TAGS})
fi
DOCKERFILE=${{ work_dir }}/dockerfile/${{ matrix.name }}.dockerfile
DOCKERFILE=buildimage/dockerfile/${{ matrix.name }}.dockerfile
CACHE_FROM="type=registry,ref=$(cut -d, -f1 <<< ${TAGS})"
CACHE_TO=""
Expand Down Expand Up @@ -90,7 +88,7 @@ jobs:
uses: docker/build-push-action@v2
with:
platforms: linux/amd64
context: ./${{ work_dir }}
context: ./buildimage
file: ${{ steps.metadata.outputs.dockerfile }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
Expand Down

0 comments on commit 36e4577

Please sign in to comment.