Compare commits

...

2 commits
v0.0.6 ... main

Author SHA1 Message Date
9885585516 feat: remove drone pipeline 2025-08-21 20:40:21 +02:00
b8b0bc8f65 feat: add forgejo workflow
All checks were successful
/ release (push) Successful in 7m43s
2025-08-21 20:29:45 +02:00
2 changed files with 43 additions and 41 deletions

View file

@ -1,41 +0,0 @@
---
kind: pipeline
type: docker
name: default
trigger:
event:
- tag
steps:
- name: go get
image: golang
commands:
- go get
- mkdir dist
- name: Building for Linux
image: golang
environment:
GOOS: linux
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-linux-amd64
- name: gitea release
image: plugins/gitea-release
settings:
api_key:
from_secret: token
base_url: https://git.ctdo.de
files: dist/*
checksum:
- md5
- sha1
- sha256
- name: build docker image
image: plugins/docker
settings:
username: ctdo
password:
from_secret: dockerhub_password
repo: ctdo/machinelock-manager
tags: latest

View file

@ -0,0 +1,43 @@
on:
push:
tags:
- '*'
jobs:
release:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.23'
- 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.6.2
with:
direction: upload
release-dir: dist
- name: Docker CLI installation
run: |
apt update
apt install -y ca-certificates curl
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
- 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