mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
feat: Bump github action versions and add multiarch support (#553)
feat: bump github action versions and add multiarch support
This commit is contained in:
parent
50c7a78f4f
commit
d588913e75
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -195,27 +195,31 @@ jobs:
|
||||
${{ runner.os }}-buildx-
|
||||
|
||||
- name: "Login to Docker Hub"
|
||||
uses: "docker/login-action@v1"
|
||||
uses: "docker/login-action@v3"
|
||||
with:
|
||||
username: "${{ secrets.DOCKER_HUB_USER }}"
|
||||
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
|
||||
|
||||
- name: "Login to GitHub Container Registry"
|
||||
uses: "docker/login-action@v2"
|
||||
uses: "docker/login-action@v3"
|
||||
with:
|
||||
registry: "ghcr.io"
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: "Set up QEMU"
|
||||
uses: "docker/setup-qemu-action@v3"
|
||||
|
||||
- name: "Set up Docker Buildx"
|
||||
id: "buildx"
|
||||
uses: "docker/setup-buildx-action@v1"
|
||||
uses: "docker/setup-buildx-action@v3"
|
||||
|
||||
- name: "Build and push"
|
||||
id: "docker_build"
|
||||
uses: "docker/build-push-action@v2"
|
||||
uses: "docker/build-push-action@v5"
|
||||
with:
|
||||
context: "./"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
file: "./Dockerfile"
|
||||
builder: "${{ steps.buildx.outputs.name }}"
|
||||
push: true
|
||||
|
Loading…
Reference in New Issue
Block a user