Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ jobs:
uses: actions/checkout@v6

- name: set up docker buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: build only (PR validation)
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: ${{ matrix.image.context }}
file: ${{ matrix.image.dockerfile }}
Expand All @@ -64,23 +64,23 @@ jobs:

- name: login to ghcr.io
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUBPKG }}

- name: login to dockerhub
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: build and push to ghcr.io
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
id: build-ghcr
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: ${{ matrix.image.context }}
file: ${{ matrix.image.dockerfile }}
Expand All @@ -90,7 +90,7 @@ jobs:
- name: build and push to dockerhub
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
id: build-dockerhub
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: ${{ matrix.image.context }}
file: ${{ matrix.image.dockerfile }}
Expand Down Expand Up @@ -158,17 +158,17 @@ jobs:
echo "All digests present"

- name: set up docker buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: login to ghcr.io
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUBPKG }}

- name: login to dockerhub
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
Expand Down