File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Docker
1+ name : docker-publish
22
33on :
44 push :
55 branches :
66 - main
7- paths :
8- - ' .github/workflows/docker.yaml'
97 pull_request :
108 branches :
119 - main
@@ -16,15 +14,13 @@ permissions:
1614 packages : write
1715
1816concurrency :
19- group : docker-pgpm-modules- ${{ github.ref }}
17+ group : docker-${{ github.ref }}
2018 cancel-in-progress : true
2119
2220env :
23- IMAGE_NAME : pgpm/ modules
21+ IMAGE_NAME : pgpm- modules
2422 IMAGE_REGISTRY : ghcr.io
2523 IMAGE_REPO : ${{ github.repository_owner }}
26- BUILD_CONTEXT : pgpm-modules
27- DOCKERFILE_PATH : pgpm-modules/Dockerfile
2824 PLATFORMS : ${{ github.event_name != 'pull_request' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
2925
3026jobs :
6359 - name : Build and push
6460 uses : docker/build-push-action@v6
6561 with :
66- context : ${{ env.BUILD_CONTEXT }}
67- file : ${{ env.DOCKERFILE_PATH }}
62+ context : .
63+ file : ./Dockerfile
6864 push : ${{ github.event_name != 'pull_request' }}
6965 platforms : ${{ env.PLATFORMS }}
7066 tags : ${{ steps.meta.outputs.tags }}
7470
7571 - name : Image digest
7672 run : echo "Pushed ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }} with tags - ${{ steps.meta.outputs.tags }}"
77-
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN set -eux; \
1818 corepack prepare pnpm@10.12.2 --activate; \
1919 rm -rf /var/lib/apt/lists/*
2020
21- # Copy workspace (build context should be pgpm-modules directory )
21+ # Copy workspace (build context is the repo root of pgpm-modules)
2222COPY . .
2323
2424# Install workspace deps and bundle packages
You can’t perform that action at this time.
0 commit comments