Skip to content

Commit ef0f158

Browse files
authored
Update docker.yml
1 parent 0cef107 commit ef0f158

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/docker.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
branches: [ "main" ]
77
release:
8-
types: [ published ]
8+
types: [ "published" ]
99
jobs:
1010
test:
1111
if: github.event_name == 'pull_request'
@@ -17,7 +17,7 @@ jobs:
1717
uses: docker/build-push-action@v3.2.0
1818
with:
1919
push: false
20-
tags: dprohe/sdynpy:latest
20+
tags: dprohe/sdynpy:test
2121
latest:
2222
if: github.event_name == 'push'
2323
runs-on: ubuntu-latest
@@ -29,11 +29,19 @@ jobs:
2929
with:
3030
username: dprohe
3131
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
- name: login
33+
uses: docker/login-action@v2
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
3238
- name: build-push
3339
uses: docker/build-push-action@v3.2.0
3440
with:
3541
push: true
36-
tags: dprohe/sdynpy:latest
42+
tags: |
43+
dprohe/sdynpy:latest
44+
ghcr.io/sandialabs/sdynpy:latest
3745
versioned:
3846
if: github.event_name == 'release'
3947
runs-on: ubuntu-latest
@@ -50,10 +58,18 @@ jobs:
5058
with:
5159
username: dprohe
5260
password: ${{ secrets.DOCKERHUB_TOKEN }}
61+
- name: login
62+
uses: docker/login-action@v2
63+
with:
64+
registry: ghcr.io
65+
username: ${{ github.actor }}
66+
password: ${{ secrets.GITHUB_TOKEN }}
5367
- name: build-push
5468
uses: docker/build-push-action@v3.2.0
5569
with:
5670
push: true
5771
tags: |
5872
dprohe/sdynpy:${{steps.tag.outputs.tag}}
5973
dprohe/sdynpy:latest
74+
ghcr.io/sandialabs/sdynpy:${{steps.tag.outputs.tag}}
75+
ghcr.io/sandialabs/sdynpy:latest

0 commit comments

Comments
 (0)