Skip to content

Commit c16a46d

Browse files
authored
Merge pull request #20 from OpenVoxProject/dockerhub
feat: push to docker.io
2 parents e7331ac + 771ca22 commit c16a46d

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
@@ -86,6 +86,13 @@ jobs:
8686
username: ${{ github.repository_owner }}
8787
password: ${{ secrets.GITHUB_TOKEN }}
8888

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

0 commit comments

Comments
 (0)