Skip to content

Commit a6eff37

Browse files
committed
Switch to GHCR.io
1 parent 0082894 commit a6eff37

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ jobs:
88
name: Docker
99
runs-on: ubuntu-latest
1010

11+
permissions:
12+
contents: read
13+
packages: write
14+
1115
strategy:
1216
fail-fast: false
1317
matrix:
@@ -17,7 +21,7 @@ jobs:
1721
- docworker-lambda
1822

1923
env:
20-
PUBLIC_IMAGE_PREFIX: 'datastewardshipwizard'
24+
PUBLIC_IMAGE_PREFIX: 'ghcr.io/ds-wizard'
2125
IMAGE_BASE_NAME: 'python-base'
2226
DOCKER_META_CONTEXT: '.'
2327
DOCKER_META_FILE: './${{ matrix.tag }}/Dockerfile'
@@ -63,13 +67,14 @@ jobs:
6367
cache-from: type=gha
6468
cache-to: type=gha,mode=max
6569

66-
# PUBLIC: DOCKER HUB
70+
# PUBLIC: GITHUB CONTAINER REGISTRY
6771
- name: Docker login [public]
6872
if: github.event_name != 'pull_request'
6973
uses: docker/login-action@v4
7074
with:
71-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
72-
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
75+
registry: ghcr.io
76+
username: ${{ github.actor }}
77+
password: ${{ secrets.GITHUB_TOKEN }}
7378

7479
- name: Docker meta [public]
7580
id: meta-public

0 commit comments

Comments
 (0)