add publish workflow
Some checks failed
publish-image / docker (push) Failing after 7s

This commit is contained in:
Johan Lundberg 2026-07-01 09:26:28 +02:00
parent aff22eb2f4
commit 1f3dde4205
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1

View file

@ -0,0 +1,33 @@
name: publish-image
on:
push:
tags: ['v*']
jobs:
docker:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: git.snakedesert.se
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: git.snakedesert.se/${{ github.repository }}
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=raw,value=latest
- uses: docker/build-push-action@v6
with:
context: .
target: prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}