38 lines
942 B
YAML
38 lines
942 B
YAML
|
|
name: Publish UI image
|
||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
tags:
|
||
|
|
- 'v[0-9]+.[0-9]+.[0-9]+-wilddragon*'
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
build-push:
|
||
|
|
runs-on: docker
|
||
|
|
steps:
|
||
|
|
- uses: actions/checkout@v4
|
||
|
|
|
||
|
|
- name: Set up QEMU
|
||
|
|
uses: docker/setup-qemu-action@v3
|
||
|
|
|
||
|
|
- name: Set up Buildx
|
||
|
|
uses: docker/setup-buildx-action@v3
|
||
|
|
|
||
|
|
- name: Log in to registry
|
||
|
|
uses: docker/login-action@v3
|
||
|
|
with:
|
||
|
|
registry: ${{ vars.REGISTRY }}
|
||
|
|
username: ${{ vars.REGISTRY_USER }}
|
||
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||
|
|
|
||
|
|
- name: Build and push
|
||
|
|
uses: docker/build-push-action@v5
|
||
|
|
with:
|
||
|
|
context: .
|
||
|
|
platforms: linux/amd64,linux/arm64
|
||
|
|
push: true
|
||
|
|
tags: |
|
||
|
|
${{ vars.REGISTRY }}/${{ vars.IMAGE_NAME }}:${{ github.ref_name }}
|
||
|
|
${{ vars.REGISTRY }}/${{ vars.IMAGE_NAME }}:latest
|
||
|
|
cache-from: type=gha
|
||
|
|
cache-to: type=gha,mode=max
|