Skip to content

Commit 227f9cf

Browse files
feat: Edited path
1 parent 0b65ac6 commit 227f9cf

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ jobs:
1313
build:
1414
if: ( github.event_name == 'push' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') ) )
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
projects:
19-
- path: ./
20-
name: salmon
2116
outputs:
2217
image: ${{ steps.image-ref.outputs.image }}
2318
image_latest: ${{ steps.image-ref.outputs.image_latest }}
@@ -39,8 +34,8 @@ jobs:
3934
id: image-ref
4035
run: |
4136
REF=$(git rev-parse --short $GITHUB_SHA)
42-
IMAGE=${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.projects.name }}:${REF}
43-
IMAGE_LATEST=${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.projects.name }}:latest
37+
IMAGE=${{ env.REGISTRY }}/${{ github.repository }}:${REF}
38+
IMAGE_LATEST=${{ env.REGISTRY }}/${{ github.repository }}:latest
4439
4540
echo "image=${IMAGE}" >> $GITHUB_STATE
4641
echo "image_latest=${IMAGE_LATEST}" >> $GITHUB_OUTPUT
@@ -50,8 +45,7 @@ jobs:
5045
- name: Build and push docker image
5146
uses: docker/build-push-action@v6
5247
with:
53-
context: ${{ matrix.projects.path }}
54-
file: ${{ matrix.projects.path }}/Dockerfile
48+
file: Dockerfile
5549
push: true
5650
platforms: linux/amd64,linux/arm64,windows/amd64,windows/arm64,darwin/amd64,darwin/arm64,linux/arm/v7,linux/arm/v8,linux/s390x
5751
cache-from: type=registry,ref=${{ steps.image-ref.outputs.image_latest }}

0 commit comments

Comments
 (0)