Skip to content

Commit 36e4577

Browse files
committed
fix bug in workflow
1 parent bbff5b4 commit 36e4577

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build-image.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
permissions:
2020
contents: read
2121
packages: write
22-
env:
23-
work_dir: buildimage
2422
strategy:
2523
matrix:
2624
include:
@@ -33,7 +31,7 @@ jobs:
3331
uses: actions/checkout@v2
3432
with:
3533
submodules: true
36-
path: ${{ work_dir }}
34+
path: buildimage
3735
- name: Free disk space
3836
run: |
3937
mkdir -p /tmp/emptydir
@@ -57,7 +55,7 @@ jobs:
5755
if [[ "${{ github.event_name }}" == "release" ]]; then
5856
TAGS=$(sed "s/main/${GITHUB_REF##*/}/g" <<< ${TAGS})
5957
fi
60-
DOCKERFILE=${{ work_dir }}/dockerfile/${{ matrix.name }}.dockerfile
58+
DOCKERFILE=buildimage/dockerfile/${{ matrix.name }}.dockerfile
6159
6260
CACHE_FROM="type=registry,ref=$(cut -d, -f1 <<< ${TAGS})"
6361
CACHE_TO=""
@@ -90,7 +88,7 @@ jobs:
9088
uses: docker/build-push-action@v2
9189
with:
9290
platforms: linux/amd64
93-
context: ./${{ work_dir }}
91+
context: ./buildimage
9492
file: ${{ steps.metadata.outputs.dockerfile }}
9593
push: ${{ github.event_name != 'pull_request' }}
9694
tags: ${{ steps.metadata.outputs.tags }}

0 commit comments

Comments
 (0)