Skip to content

Commit

Permalink
ci: upgrade workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof authored May 1, 2024
1 parent d5b3fde commit 60c6dd1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get artifact name
id: getartifactname
Expand All @@ -51,7 +51,7 @@ jobs:
# - all releases are tags with major, major.minor and version
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
flavor: |
Expand All @@ -64,10 +64,10 @@ jobs:
type=semver,enable=${{ github.ref_type == 'tag' }},pattern={{version}}
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Setup Docker Build-X
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Github Registry
uses: docker/login-action@v2
Expand All @@ -89,7 +89,7 @@ jobs:
- name: Build and push by digest
id: build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
Expand All @@ -105,7 +105,7 @@ jobs:
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.getartifactname.outputs.artifact }}
path: /tmp/digests/*
Expand Down Expand Up @@ -134,11 +134,11 @@ jobs:
path: /tmp/digests

- name: Set up Docker Build-X
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
tags: |
Expand All @@ -149,14 +149,14 @@ jobs:
type=semver,enable=${{ github.ref_type == 'tag' }},pattern={{version}}
- name: Login to Github Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 60c6dd1

Please sign in to comment.