8484 VERSION : ${{ steps.check.outputs.ref || 'dev' }}
8585
8686 build-linux-musl :
87+ environment : dockerhub
8788 permissions :
8889 contents : write
8990 id-token : write
@@ -121,8 +122,8 @@ jobs:
121122 uses : docker/login-action@v4
122123 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
123124 with :
124- username : ${{ secrets.REGISTRY_USERNAME }}
125- password : ${{ secrets.REGISTRY_PASSWORD }}
125+ username : ${{ vars.DOCKERHUB_USERNAME }}
126+ password : ${{ secrets.DOCKERHUB_TOKEN }}
126127 - name : Set VERSION
127128 run : |
128129 if [ "${GITHUB_REF_TYPE}" == "tag" ]; then
@@ -219,6 +220,7 @@ jobs:
219220 BINARY : ./frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}
220221
221222 build-linux-gnu :
223+ environment : dockerhub
222224 permissions :
223225 contents : write
224226 id-token : write
@@ -289,8 +291,8 @@ jobs:
289291 uses : docker/login-action@v4
290292 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
291293 with :
292- username : ${{ secrets.REGISTRY_USERNAME }}
293- password : ${{ secrets.REGISTRY_PASSWORD }}
294+ username : ${{ vars.DOCKERHUB_USERNAME }}
295+ password : ${{ secrets.DOCKERHUB_TOKEN }}
294296 - name : Build
295297 id : build
296298 uses : docker/bake-action@v7
@@ -377,6 +379,7 @@ jobs:
377379
378380 # Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/
379381 push :
382+ environment : dockerhub
380383 runs-on : ubuntu-24.04
381384 needs :
382385 - prepare
@@ -402,8 +405,8 @@ jobs:
402405 uses : docker/login-action@v4
403406 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
404407 with :
405- username : ${{ secrets.REGISTRY_USERNAME }}
406- password : ${{ secrets.REGISTRY_PASSWORD }}
408+ username : ${{ vars.DOCKERHUB_USERNAME }}
409+ password : ${{ secrets.DOCKERHUB_TOKEN }}
407410 - name : Create manifest list and push
408411 working-directory : /tmp/metadata
409412 run : |
0 commit comments