Skip to content

Commit

Permalink
try using docker/build-push-action@v6
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazs-flare committed Nov 11, 2024
1 parent db5e7cc commit b75b55d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:

# TODO:(matej) upload images to dockerhub?
# - name: Login to docker.io
# uses: docker/login-action@v2
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_HUB_UID }}
# password: ${{ secrets.DOCKER_HUB_PAT }}

- name: Build and push image for tags
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
if: startsWith(github.ref, 'refs/tags/v')
with:
context: . # Because GH actions are for kids and put protection on everything; https://stackoverflow.com/a/71159809/11276254
Expand All @@ -54,7 +54,7 @@ jobs:
# ${{ secrets.DOCKER_HUB_REPO }}:latest
- name: Build and push image for main
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
if: github.ref_name == 'main'
with:
context: . # Because GH actions are for kids and put protection on everything; https://stackoverflow.com/a/71159809/11276254
Expand Down

0 comments on commit b75b55d

Please sign in to comment.