feat: add forgejo workflow
Some checks failed
/ release (push) Failing after 1m22s

This commit is contained in:
neri 2025-08-21 19:36:28 +02:00
parent 402f755497
commit 4baf12e045

View file

@ -0,0 +1,37 @@
on:
push:
tags:
- '*'
jobs:
release:
container:
image: golang
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: go get
run: |
go get
mkdir dist
- name: Building for Linux
env:
GOOS: linux
GOARCH: amd64
run: go build -v -o dist/machinelock-manager-linux-amd64
- name: forgejo release
uses: actions/forgejo-release@v2.7.2
with:
direction: upload
release-dir: dist
- name: login to docker hub
uses: https://github.com/docker/login-action@v3
with:
username: ctdo
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: build docker image
uses: https://github.com/docker/build-push-action@v6
with:
push: true
tags: ctdo/machinelock-manager:latest