Skip to content

Commit

Permalink
Bump github actions used in docker build workflow (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek authored Dec 4, 2023
1 parent b578ee3 commit 31f9f0b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Container meta for default (distroless) image
id: docker_meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGES }}
tags: |
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Container meta for tomcat image
id: docker_tomcat_meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGES }}
tags: |
Expand All @@ -39,20 +39,20 @@ jobs:
suffix=-tomcat,onlatest=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build and push default (distroless) image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
Expand All @@ -73,7 +73,7 @@ jobs:

- name: Build and push tomcat image
id: docker_build_tomcat
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
Expand Down

0 comments on commit 31f9f0b

Please sign in to comment.