Skip to content

Commit 74a833e

Browse files
committed
feat: push to docker.io
1 parent e7331ac commit 74a833e

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build_container.yml

Lines changed: 46 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,42 @@ 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+
#
129+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxagent:${{ steps.extract_version.outputs.version }}-${{ github.ref_name }} \
130+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-arm64 \
131+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-x86_64
132+
133+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxagent:${{ steps.extract_version.outputs.version }}-latest \
134+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-arm64 \
135+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-x86_64
136+
137+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxagent:${{ matrix.release }}-latest \
138+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-arm64 \
139+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-x86_64
140+
141+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxagent:${{ matrix.release }} \
142+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-arm64 \
143+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-x86_64
144+
145+
docker buildx imagetools create -t docker.io/voxpupuli/openvoxagent:latest \
146+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-arm64 \
147+
ghcr.io/openvoxproject/openvoxagent:${{ matrix.release }}-${{ github.sha }}-x86_64
148+
149+
update-dockerhub-description:
150+
runs-on: ubuntu-latest
151+
permissions:
152+
contents: read
153+
needs:
154+
- create-multi-arch-manifests
155+
steps:
156+
- name: Source checkout
157+
uses: actions/checkout@v4
158+
159+
- name: Update Docker Hub Description
160+
uses: peter-evans/dockerhub-description@v4
161+
with:
162+
username: voxpupulibot
163+
password: ${{ secrets.DOCKERHUB_BOT_ADMIN_TOKEN }}
164+
repository: voxpupuli/openvoxagent

0 commit comments

Comments
 (0)