wlc-monitor/.forgejo/workflows/publish-latest.yml
Johan Lundberg e7bde2b3f4
All checks were successful
publish-latest / docker (push) Successful in 9s
ci / test (3.10) (push) Successful in 19s
ci / test (3.12) (push) Successful in 19s
ci / test (3.13) (push) Successful in 19s
ci / container (push) Successful in 7s
publish-image / docker (push) Successful in 8s
Use Forgejo workflows and registry
2026-07-30 23:35:14 +02:00

42 lines
1.1 KiB
YAML

name: publish-latest
on:
push:
branches: [main]
jobs:
docker:
runs-on: docker
container:
image: catthehacker/ubuntu:act-22.04
volumes:
- /certs/client:/certs/client
env:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: "1"
DOCKER_CERT_PATH: /certs/client
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: git.snakedesert.se
# Forgejo exposes github.* compatibility aliases; this matches the
# established Porchlight workflow and works with older runners.
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: git.snakedesert.se/${{ github.repository }}
tags: |
type=raw,value=edge
type=sha,format=short
- uses: docker/build-push-action@v6
with:
context: .
target: prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}