Skip to content

Commit d390662

Browse files
authored
✨ also push to docker hub
1 parent f496aa5 commit d390662

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ jobs:
3434
registry: ghcr.io
3535
username: ${{ github.actor }}
3636
password: ${{ secrets.GITHUB_TOKEN }}
37+
-
38+
name: Login to DockerHub
39+
uses: docker/login-action@v2
40+
with:
41+
username: ${{ secrets.DOCKERHUB_USERNAME }}
42+
password: ${{ secrets.DOCKERHUB_TOKEN }}
3743
-
3844
name: Build and push ${{ matrix.webserver }}-${{ matrix.php }}-${{ matrix.distro }}
3945
id: docker_build
4046
uses: docker/build-push-action@v4
4147
with:
4248
push: ${{ github.ref == 'refs/heads/main' }}
43-
tags: ghcr.io/pluswerk/php-dev:${{ matrix.webserver }}-${{ matrix.php }}${{ matrix.distroAddon }},ghcr.io/pluswerk/php-dev:${{ matrix.webserver }}-${{ matrix.php }}${{ matrix.distroAddon }}-${{ steps.date.outputs.date }}
49+
tags: ghcr.io/pluswerk/php-dev:${{ matrix.webserver }}-${{ matrix.php }}${{ matrix.distroAddon }},ghcr.io/pluswerk/php-dev:${{ matrix.webserver }}-${{ matrix.php }}${{ matrix.distroAddon }}-${{ steps.date.outputs.date }}, pluswerk/php-dev:${{ matrix.webserver }}-${{ matrix.php }}${{ matrix.distroAddon }},pluswerk/php-dev:${{ matrix.webserver }}-${{ matrix.php }}${{ matrix.distroAddon }}-${{ steps.date.outputs.date }}
4450
build-args: |
4551
FROM=webdevops/php-${{ matrix.webserver }}-dev:${{ matrix.php }}${{ matrix.distroAddon }}
4652
DIST_ADDON=${{ matrix.distroAddon }}

0 commit comments

Comments
 (0)