0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

ci: build arm64 per release (#3120)

This commit is contained in:
Gao Sun 2023-02-15 19:04:36 +08:00 committed by GitHub
parent c6e3ecb23c
commit 039d6dff3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,11 +51,26 @@ jobs:
registry: ghcr.io
username: silverhand-bot
password: ${{ secrets.BOT_PAT }}
- name: Setup Docker Buildx
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: docker/setup-buildx-action@v2
- name: Build and push
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Setup Depot
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: depot/setup-action@v1
- name: Build
- name: Build and push
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: depot/build-push-action@v1
with:
platforms: linux/amd64, linux/arm64