diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 49fb24b0..4d6f2cdf 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -5,6 +5,7 @@ on: - master paths: - 'docs/**' + - 'go-vod/**' - 'CHANGELOG.md' - 'mkdocs.yml' diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index e3222d2a..e542f282 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -7,6 +7,7 @@ on: - pulsejet/* paths-ignore: - 'docs/**' + - 'go-vod/**' - 'mkdocs.yml' - '**.md' diff --git a/go-vod/.github/workflows/release.yml b/.github/workflows/go-vod.yml similarity index 86% rename from go-vod/.github/workflows/release.yml rename to .github/workflows/go-vod.yml index 54dd8f0d..9ac91aaf 100644 --- a/go-vod/.github/workflows/release.yml +++ b/.github/workflows/go-vod.yml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1afb512d..590ba6f3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,7 @@ env: jobs: publish: + if: ${{ startsWith(github.ref, 'refs/tags/v') }} runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 0a9fae0e..d068684d 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -4,11 +4,13 @@ on: push: paths-ignore: - 'docs/**' + - 'go-vod/**' - 'mkdocs.yml' - '**.md' pull_request: paths-ignore: - 'docs/**' + - 'go-vod/**' - 'mkdocs.yml' - '**.md'