2024-08-11 16:49:06 +02:00
|
|
|
name: Publish latest version
|
|
|
|
|
|
|
|
on:
|
2024-08-13 11:19:50 +02:00
|
|
|
workflow_dispatch:
|
2024-08-11 16:49:06 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
container:
|
|
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-08-13 11:36:23 +02:00
|
|
|
uses: actions/checkout@v3
|
2024-08-13 11:17:06 +02:00
|
|
|
with:
|
2024-08-13 11:36:23 +02:00
|
|
|
lfs: false
|
|
|
|
|
|
|
|
- name: LFS checkout
|
|
|
|
run: |
|
|
|
|
git lfs install --local
|
|
|
|
git -c "http.${{ github.server_url }}/storage/lfs/.extraHeader=" lfs pull
|
2024-08-11 16:49:06 +02:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
- name: Sanitize metadata
|
|
|
|
id: meta
|
|
|
|
uses: docker/metadata-action@v5
|
|
|
|
with:
|
|
|
|
tags: latest
|
|
|
|
images: git.mylloon.fr/${{ github.repository }}
|
|
|
|
|
|
|
|
- name: Login to Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: ${{ github.server_url }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|