This commit is contained in:
parent
402f755497
commit
12a7ccde39
1 changed files with 36 additions and 0 deletions
36
.forgejo/workflows/release.yaml
Normal file
36
.forgejo/workflows/release.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
container:
|
||||
image: golang
|
||||
|
||||
jobs:
|
||||
release:
|
||||
steps:
|
||||
- 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
|
||||
|
Loading…
Add table
Reference in a new issue