Skip to content

Commit 4995007

Browse files
committed
use ghcr
1 parent 89906bc commit 4995007

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
push:
1010

1111
env:
12-
# Use docker.io for Docker Hub if empty
13-
REGISTRY: docker.io
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: accel-sim/accel-sim-framework
1414

1515

1616
jobs:
@@ -22,17 +22,18 @@ jobs:
2222
- name: Check out the repo
2323
uses: actions/checkout@v4
2424

25-
- name: Log in to Docker Hub
26-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
25+
- name: Log in to the Container registry
26+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
2727
with:
28-
username: ${{ secrets.DOCKERHUB_USER }}
29-
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
registry: ${{ env.REGISTRY }}
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
3031

3132
- name: Extract metadata (tags, labels) for Docker
3233
id: meta
3334
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
3435
with:
35-
images: tgrogers/accel-sim_regress
36+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3637

3738
- name: Build and push Docker image
3839
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671

0 commit comments

Comments
 (0)