Skip to content

Commit 9a4d85b

Browse files
committed
define registry and image name at top of workflow
1 parent 8caa2c1 commit 9a4d85b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ci.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
branches: [develop]
66
pull_request:
77
branches: [develop]
8-
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: twsearle/orca-jedi/ci-almalinux9:latest
911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
@@ -60,17 +62,17 @@ jobs:
6062
- name: Log in to GitHub Container Registry
6163
uses: docker/login-action@v3
6264
with:
63-
registry: ghcr.io
64-
username: ${{ github.actor}}
65-
password: ${{ secrets.GH_PAT }}
65+
registry: ${{ env.REGISTRY }}
66+
username: ${{ github.actor }}
67+
password: ${{ secrets.GITHUB_TOKEN }}
6668

6769
- name: Pull Docker image
68-
run: docker pull ghcr.io/${{ github.actor }}/orca-jedi/ci-almalinux9:develop
70+
run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6971

7072
- name: build and test
7173
run: |
7274
docker run --rm \
7375
--entrypoint=/usr/local/src/orca-jedi/ci/build-and-test.sh \
7476
--workdir=/usr/local/src/orca-jedi/ci \
7577
--volume $PWD:/usr/local/src/orca-jedi \
76-
ghcr.io/${{ github.actor }}/orca-jedi/ci-almalinux9:develop
78+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

0 commit comments

Comments
 (0)