Change to Forgejo Workflow
All checks were successful
Create release / release (push) Successful in 1m14s
All checks were successful
Create release / release (push) Successful in 1m14s
This commit is contained in:
parent
d355b60901
commit
fc92f5466a
9 changed files with 43 additions and 39 deletions
43
.forgejo/workflows/release.yaml
Normal file
43
.forgejo/workflows/release.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: Create release
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
REGISTRY: git.lycaknight.de
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: docker
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout the target Git reference
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PORTFOLIO_TOKEN }}
|
||||
|
||||
- name: Set up Golang
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Set up Docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
tags: ${{ env.REGISTRY }}/${{ gitea.repository }}:latest
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue