chore(): add pipeline
All checks were successful
Go / build (push) Successful in 2m2s
Release / publish (push) Successful in 3m37s

This commit is contained in:
2025-08-27 21:34:41 +02:00
parent 5552258f20
commit 7884553aba
3 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
name: Release
on:
push:
branches: ["main"]
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.schreifuchs.ch"]
http = true
insecure = true
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: new release
draft: false
prerelease: false
- name: login
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: "git.schreifuchs.ch/lou-taylor/accounting:${{ github.ref_name }},git.schreifuchs.ch/lou-taylor/accounting:latest"