We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f94988 commit 3e71125Copy full SHA for 3e71125
.github/workflows/mpi-operator-docker-image-publish.yml
@@ -12,6 +12,7 @@ on:
12
13
env:
14
IMAGE_NAME: mpioperator/mpi-operator
15
+ GHCR_IMAGE_NAME: ghcr.io/mpioperator/mpi-operator
16
17
jobs:
18
build-push-docker-image:
@@ -26,6 +27,7 @@ jobs:
26
27
with:
28
images: |
29
${{ env.IMAGE_NAME }}
30
+ ${{ env.GHCR_IMAGE_NAME }}
31
tags: |
32
type=ref,event=branch
33
type=ref,event=pr
@@ -39,6 +41,14 @@ jobs:
39
41
username: ${{ secrets.DOCKERHUB_USERNAME }}
40
42
password: ${{ secrets.DOCKERHUB_TOKEN }}
43
44
+ - name: Login to GitHub Container Registry
45
+ if: github.event_name != 'pull_request'
46
+ uses: docker/login-action@v2
47
+ with:
48
+ registry: ghcr.io
49
+ username: ${{ github.actor }}
50
+ password: ${{ secrets.GITHUB_TOKEN }}
51
+
52
- name: Docker Setup QEMU
53
uses: docker/[email protected]
54
0 commit comments