2024-03-02 05:09:37 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
name: docker-publish
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ['master']
|
|
|
|
tags: ['v*']
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker-publish:
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-09-22 05:42:02 -04:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
2024-03-02 05:09:37 -05:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
show-progress: false
|
|
|
|
|
|
|
|
- name: Log into registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Docker Build & Publish
|
2024-09-22 05:42:02 -04:00
|
|
|
id: taggen
|
|
|
|
run: bash ci/docker-gen-tagnames.sh
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.taggen.outputs.docker_build_tags }}
|
2024-03-02 05:09:37 -05:00
|
|
|
|
|
|
|
...
|