mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 14:07:22 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
|
name: CI
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- "v*"
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
matrix:
|
||
|
platform: [linux/amd64,linux/arm64]
|
||
|
env:
|
||
|
IS_LINUX: ${{ startsWith(matrix.platform, 'linux/') && 'true' || 'false' }}
|
||
|
GIT_TAG: ${{ needs.git-version.outputs.git_tag }}
|
||
|
steps:
|
||
|
-
|
||
|
name: Set up QEMU
|
||
|
uses: docker/setup-qemu-action@v3
|
||
|
-
|
||
|
name: Set up Docker Buildx
|
||
|
uses: docker/setup-buildx-action@v3
|
||
|
-
|
||
|
name: Login to DockerHub
|
||
|
uses: docker/login-action@v3
|
||
|
with:
|
||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||
|
- uses: docker/metadata-action@v5
|
||
|
id: meta
|
||
|
with:
|
||
|
images: damillora/phoebe
|
||
|
flavor: |
|
||
|
latest=false
|
||
|
tags: |
|
||
|
type=semver,pattern={{version}}
|
||
|
- name: Build and push
|
||
|
id: docker_build_git
|
||
|
uses: docker/build-push-action@v6
|
||
|
with:
|
||
|
push: true
|
||
|
platforms: ${{ matrix.platform }}
|
||
|
tags: ${{ steps.meta.outputs.tags }}
|
||
|
labels: ${{ steps.meta.outputs.labels }}
|