ci: update workflows
parent
4df1ce40f3
commit
6ea28fa775
|
@ -5,6 +5,7 @@ on:
|
|||
- master
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- 'go-vod/**'
|
||||
- 'CHANGELOG.md'
|
||||
- 'mkdocs.yml'
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ on:
|
|||
- pulsejet/*
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'go-vod/**'
|
||||
- 'mkdocs.yml'
|
||||
- '**.md'
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
name: release
|
||||
name: go-vod
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
- "go-vod/*"
|
||||
|
||||
jobs:
|
||||
binary:
|
||||
|
@ -18,6 +18,7 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
working-directory: go-vod
|
||||
run: |
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-s -w" -o go-vod-amd64
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -buildvcs=false -ldflags="-s -w" -o go-vod-arm64
|
||||
|
@ -26,10 +27,11 @@ jobs:
|
|||
uses: svenstaro/upload-release-action@v2
|
||||
id: attach_to_release
|
||||
with:
|
||||
file: go-vod-*
|
||||
file: go-vod/go-vod-*
|
||||
file_glob: true
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
make_latest: false
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -54,14 +56,14 @@ jobs:
|
|||
|
||||
- name: Get image label
|
||||
id: image_label
|
||||
run: echo "label=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||
run: echo "label=${GITHUB_REF#refs/tags/go-vod/}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build container image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
context: './'
|
||||
context: './go-vod/'
|
||||
no-cache: true
|
||||
file: 'Dockerfile'
|
||||
tags: radialapps/go-vod:${{ steps.image_label.outputs.label }} , radialapps/go-vod:latest
|
|
@ -9,6 +9,7 @@ env:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
|
@ -4,11 +4,13 @@ on:
|
|||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'go-vod/**'
|
||||
- 'mkdocs.yml'
|
||||
- '**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'go-vod/**'
|
||||
- 'mkdocs.yml'
|
||||
- '**.md'
|
||||
|
||||
|
|
Loading…
Reference in New Issue