feat: Bump github action versions and add multiarch support (#553)

feat: bump github action versions and add multiarch support
This commit is contained in:
Chuck CBW 2024-04-01 10:33:17 +01:00 committed by GitHub
parent 50c7a78f4f
commit d588913e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -195,27 +195,31 @@ jobs:
${{ runner.os }}-buildx- ${{ runner.os }}-buildx-
- name: "Login to Docker Hub" - name: "Login to Docker Hub"
uses: "docker/login-action@v1" uses: "docker/login-action@v3"
with: with:
username: "${{ secrets.DOCKER_HUB_USER }}" username: "${{ secrets.DOCKER_HUB_USER }}"
password: "${{ secrets.DOCKER_HUB_TOKEN }}" password: "${{ secrets.DOCKER_HUB_TOKEN }}"
- name: "Login to GitHub Container Registry" - name: "Login to GitHub Container Registry"
uses: "docker/login-action@v2" uses: "docker/login-action@v3"
with: with:
registry: "ghcr.io" registry: "ghcr.io"
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: "Set up QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "Set up Docker Buildx" - name: "Set up Docker Buildx"
id: "buildx" id: "buildx"
uses: "docker/setup-buildx-action@v1" uses: "docker/setup-buildx-action@v3"
- name: "Build and push" - name: "Build and push"
id: "docker_build" id: "docker_build"
uses: "docker/build-push-action@v2" uses: "docker/build-push-action@v5"
with: with:
context: "./" context: "./"
platforms: linux/amd64,linux/arm64
file: "./Dockerfile" file: "./Dockerfile"
builder: "${{ steps.buildx.outputs.name }}" builder: "${{ steps.buildx.outputs.name }}"
push: true push: true