Skip to content

Commit 08221aa

Browse files
committed
fix dockerfile for repo
1 parent e09d7bc commit 08221aa

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
name: Docker
1+
name: docker-publish
22

33
on:
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

1816
concurrency:
19-
group: docker-pgpm-modules-${{ github.ref }}
17+
group: docker-${{ github.ref }}
2018
cancel-in-progress: true
2119

2220
env:
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

3026
jobs:
@@ -63,8 +59,8 @@ jobs:
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 }}
@@ -74,4 +70,3 @@ jobs:
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-

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)
2222
COPY . .
2323

2424
# Install workspace deps and bundle packages

0 commit comments

Comments
 (0)