build: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-05 12:31:09 +02:00
parent 7685e2adcf
commit 4556a66f25
2 changed files with 12 additions and 7 deletions

View File

@ -1,14 +1,16 @@
---
name: 'build go project'
on: [push]
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Set up Go
uses: actions/setup-go@v4

View File

@ -2,21 +2,24 @@
name: 'build images'
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
version:
description: "version"
required: false
type: string
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@main
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/${GITHUB_REPOSITORY#*/}
VERSION=${GITHUB_REF/refs\/tags\//}
VERSION=${{ inputs.version }}
SHORTREF=${GITHUB_SHA::8}
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"