Skip to content

Commit d44285f

Browse files
committed
feat(gh-actions): skip docker.io/voxpupuli login and manifests on forks
1 parent 07b36d6 commit d44285f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build_container.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
password: ${{ secrets.GITHUB_TOKEN }}
100100

101101
- name: Log in to the docker.io registry
102+
if: github.actor == 'OpenVoxProject'
102103
uses: docker/login-action@v3
103104
with:
104105
registry: docker.io
@@ -111,7 +112,7 @@ jobs:
111112
- id: db_version
112113
run: echo "db_version=${{ matrix.db_version }}" | cut -d- -f1 >> $GITHUB_OUTPUT
113114

114-
- name: Create multi arch manifests
115+
- name: Create Ubuntu multi arch manifests (GHCR)
115116
run: |
116117
docker buildx imagetools create -t ghcr.io/${{ github.actor }}/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }} \
117118
ghcr.io/${{ github.actor }}/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
@@ -125,8 +126,10 @@ jobs:
125126
ghcr.io/${{ github.actor }}/openvoxserver:8-${{ github.sha }}-arm64 \
126127
ghcr.io/${{ github.actor }}/openvoxserver:8-${{ github.sha }}-amd64
127128
129+
- name: Create Ubuntu multi arch manifests (DockerHub)
130+
if: github.actor == 'OpenVoxProject'
131+
run: |
128132
# on docker.io we use the voxpupuli namespace because new organizations are not free anymore
129-
#
130133
docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }} \
131134
ghcr.io/${{ github.actor }}/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64 \
132135
ghcr.io/${{ github.actor }}/openvoxserver:${{ matrix.release }}-${{ github.sha }}-amd64
@@ -139,7 +142,7 @@ jobs:
139142
ghcr.io/${{ github.actor }}/openvoxserver:8-${{ github.sha }}-arm64 \
140143
ghcr.io/${{ github.actor }}/openvoxserver:8-${{ github.sha }}-amd64
141144
142-
- name: Create Alpine multi arch manifests
145+
- name: Create Alpine multi arch manifests (GHCR)
143146
run: |
144147
docker buildx imagetools create -t ghcr.io/${{ github.actor }}/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }}-alpine-beta \
145148
ghcr.io/${{ github.actor }}/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \
@@ -153,6 +156,9 @@ jobs:
153156
ghcr.io/${{ github.actor }}/openvoxserver:8-${{ github.sha }}-arm64-alpine \
154157
ghcr.io/${{ github.actor }}/openvoxserver:8-${{ github.sha }}-amd64-alpine
155158
159+
- name: Create Alpine multi arch manifests (DockerHub)
160+
if: github.actor == 'OpenVoxProject'
161+
run: |
156162
# on docker.io we use the voxpupuli namespace because new organizations are not free anymore
157163
docker buildx imagetools create -t docker.io/voxpupuli/openvoxserver:${{ steps.server_version.outputs.server_version }}-${{ github.ref_name }}-alpine-beta \
158164
ghcr.io/${{ github.actor }}/openvoxserver:${{ matrix.release }}-${{ github.sha }}-arm64-alpine \

0 commit comments

Comments
 (0)