Skip to content

Commit

Permalink
✅ Bump GitHub actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zigarn committed May 23, 2024
1 parent 76bebb8 commit 9fecab3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx with docker driver
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver: docker

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_REPOSITORY }}
tags: type=raw,value=${{ inputs.tag }}
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Download parent image artifact
if: ${{ inputs.parent != '' }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.IMAGE_REPOSITORY }}-${{ inputs.parent }}

Expand All @@ -62,7 +62,7 @@ jobs:
docker image load --input ${{ env.IMAGE_REPOSITORY }}-${{ inputs.parent }}.tar.gz
- name: Build Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ${{ inputs.folder }}
load: true
Expand All @@ -80,7 +80,7 @@ jobs:
docker image save zenika/${{ env.IMAGE_REPOSITORY }}:${{ inputs.tag }} | gzip > ${{ env.IMAGE_REPOSITORY }}-${{ inputs.tag }}.tar.gz
- name: Upload image artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_REPOSITORY }}-${{ inputs.tag }}
path: ${{ env.IMAGE_REPOSITORY }}-${{ inputs.tag }}.tar.gz
Expand Down Expand Up @@ -122,38 +122,38 @@ jobs:
- name: Login to DockerHub
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to US GAR
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: us-docker.pkg.dev
username: _json_key_base64
password: ${{ secrets.GAR_JSON_KEY }}

- name: Login to Europe GAR
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: europe-docker.pkg.dev
username: _json_key_base64
password: ${{ secrets.GAR_JSON_KEY }}

- name: Login to Asia GAR
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: asia-docker.pkg.dev
username: _json_key_base64
password: ${{ secrets.GAR_JSON_KEY }}

- name: Set up Docker Buildx with docker-container driver
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver: docker-container

Expand All @@ -162,7 +162,7 @@ jobs:
env:
IMAGE_NAME: ${{ env.IMAGE_REPOSITORY }}:${{ inputs.tag }}
IMAGE_VERSIONED_NAME: ${{ env.IMAGE_REPOSITORY }}:${{ steps.tag.outputs.value }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ${{ inputs.folder }}
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 9fecab3

Please sign in to comment.