Skip to content

Commit 59d2203

Browse files
authored
Merge pull request #26 from OpenVoxProject/dockerhub
feat: push to docker.io
2 parents 31cd610 + db71833 commit 59d2203

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build_container.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ jobs:
8888
username: ${{ github.repository_owner }}
8989
password: ${{ secrets.GITHUB_TOKEN }}
9090

91+
- name: Log in to the docker.io registry
92+
uses: docker/login-action@v3
93+
with:
94+
registry: docker.io
95+
username: voxpupulibot
96+
password: ${{ secrets.DOCKERHUB_BOT_ADMIN_TOKEN }}
97+
9198
- name: Extract version number
9299
id: extract_version
93100
uses: actions/github-script@v7
@@ -118,3 +125,41 @@ jobs:
118125
docker buildx imagetools create -t ghcr.io/openvoxproject/openvoxdb:latest \
119126
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-arm64 \
120127
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-x86_64
128+
129+
# on docker.io we use the voxpupuli namespace because new organizations are not free anymore
130+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxdb:${{ steps.extract_version.outputs.version }}-${{ github.ref_name }} \
131+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-arm64 \
132+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-x86_64
133+
134+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxdb:${{ steps.extract_version.outputs.version }}-latest \
135+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-arm64 \
136+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-x86_64
137+
138+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxdb:${{ matrix.release }}-latest \
139+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-arm64 \
140+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-x86_64
141+
142+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxdb:${{ matrix.release }} \
143+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-arm64 \
144+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-x86_64
145+
146+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxdb:latest \
147+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-arm64 \
148+
ghcr.io/openvoxproject/openvoxdb:${{ matrix.release }}-${{ github.sha }}-x86_64
149+
150+
update-dockerhub-description:
151+
runs-on: ubuntu-latest
152+
permissions:
153+
contents: read
154+
needs:
155+
- create-multi-arch-manifests
156+
steps:
157+
- name: Source checkout
158+
uses: actions/checkout@v4
159+
160+
- name: Update Docker Hub Description
161+
uses: peter-evans/dockerhub-description@v4
162+
with:
163+
username: voxpupulibot
164+
password: ${{ secrets.DOCKERHUB_BOT_ADMIN_TOKEN }}
165+
repository: voxpupuli/openvoxdb

0 commit comments

Comments
 (0)