mirror of
https://github.com/Luzifer/ots.git
synced 2026-01-06 10:35:41 -05:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
name: docker-publish
|
|
on:
|
|
push:
|
|
branches: ['master']
|
|
tags: ['v*']
|
|
|
|
permissions:
|
|
packages: write
|
|
|
|
jobs:
|
|
docker-publish:
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
|
|
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
lfs: true
|
|
show-progress: false
|
|
|
|
- name: Log into registry
|
|
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker Build & Publish
|
|
id: taggen
|
|
run: bash ci/docker-gen-tagnames.sh
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: ${{ steps.taggen.outputs.docker_build_tags }}
|