This commit is contained in:
parent
402f755497
commit
69df0f2b0e
1 changed files with 37 additions and 0 deletions
37
.forgejo/workflows/release.yaml
Normal file
37
.forgejo/workflows/release.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
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: 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue