Init
Publish Docker image / Build and Push Docker image (push) Successful in 15s
Publish Docker image / Build and Push Docker image (release) Successful in 8s

This commit is contained in:
WilliamSoderberg committed 2026-10-13 10:51:43 +02:00 Verified
commit 339e0d0e1b
3 files changed
+101

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
name: Publish Docker image
on:
release:
types: [published]
push:
tags:
- "v*"
jobs:
push_to_registry:
name: Build and Push Docker image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: git.stws.cc
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: git.stws.cc/${{ github.repository }}
tags: |
type=ref,event=tag
type=raw,value=latest
- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}