@@ -74,30 +74,34 @@ jobs:
7474 - name : 🧾 Checkout repository
7575 uses : actions/checkout@v3
7676
77- - name : 🛠 Set up QEMU
78- uses : docker/setup-qemu-action@v2
77+ - name : 🛠 Install QEMU
78+ run : |
79+ sudo apt-get update
80+ sudo apt-get install -y qemu-user-static binfmt-support
81+ docker run --privileged --rm tonistiigi/binfmt --install all || true
7982
8083 - name : 🧱 Set up Docker Buildx
8184 uses : docker/setup-buildx-action@v2
8285
83- - name : 🔐 Docker Login
86+ - name : 🔐 Docker Login to GitHub Container Registry (ghcr.io)
8487 uses : docker/login-action@v2
8588 with :
86- username : ${{ secrets.DOCKER_USERNAME }}
87- password : ${{ secrets.DOCKER_PASSWORD }}
89+ registry : ghcr.io
90+ username : ${{ secrets.GHCR_USERNAME }}
91+ password : ${{ secrets.GHCR_TOKEN }}
8892
8993 - name : 🧠 Generate build tag from hash
9094 id : meta
9195 run : |
9296 HASH=$(sha256sum subvortex/core/Dockerfile.builder | cut -d ' ' -f1)
93- echo "tag=subvortex /subvortex-wheel-builder:3.11-$HASH" >> $GITHUB_OUTPUT
97+ echo "tag=ghcr.io/${{ github.repository_owner }} /subvortex-wheel-builder:3.11-$HASH" >> $GITHUB_OUTPUT
9498
9599 - name : 🐋 Build & push wheel-builder (only if not exists)
96100 if : startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
97101 id : wheelbuilder
98102 run : |
99103 TAG="${{ steps.meta.outputs.tag }}"
100- LATEST_TAG="subvortex /subvortex-wheel-builder:latest"
104+ LATEST_TAG="ghcr.io/${{ github.repository_owner }} /subvortex-wheel-builder:latest"
101105
102106 if docker pull "$TAG" >/dev/null 2>&1; then
103107 echo "✅ Image already exists: $TAG"
@@ -141,8 +145,8 @@ jobs:
141145 run : |
142146 .github/scripts/on_tag_deleted.sh "${{ matrix.component }}" "${{ matrix.service }}" "${{ github.event.ref }}"
143147 env :
144- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
145- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
148+ GHCR_USERNAME : ${{ secrets.GHCR_USERNAME }}
149+ GHCR_TOKEN : ${{ secrets.GHCR_TOKEN }}
146150
147151 release :
148152 if : github.event_name == 'release'
@@ -159,17 +163,21 @@ jobs:
159163 - name : 🧾 Checkout repository
160164 uses : actions/checkout@v3
161165
162- - name : 🛠 Set up QEMU
163- uses : docker/setup-qemu-action@v2
166+ - name : 🛠 Install QEMU
167+ run : |
168+ sudo apt-get update
169+ sudo apt-get install -y qemu-user-static binfmt-support
170+ docker run --privileged --rm tonistiigi/binfmt --install all || true
164171
165172 - name : 🧱 Set up Docker Buildx
166173 uses : docker/setup-buildx-action@v2
167174
168- - name : 🔐 Docker Login
175+ - name : 🔐 Docker Login to GitHub Container Registry (ghcr.io)
169176 uses : docker/login-action@v2
170177 with :
171- username : ${{ secrets.DOCKER_USERNAME }}
172- password : ${{ secrets.DOCKER_PASSWORD }}
178+ registry : ghcr.io
179+ username : ${{ secrets.GHCR_USERNAME }}
180+ password : ${{ secrets.GHCR_TOKEN }}
173181
174182 - name : 🧠 Determine tag and floating tags
175183 id : taginfo
@@ -193,5 +201,3 @@ jobs:
193201 "${{ steps.taginfo.outputs.version_tag }}" \
194202 "${{ github.event.release.prerelease }}" \
195203 "${{ github.event.release.draft }}"
196- env :
197- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments