Skip to content

Commit

Permalink
update release scripts to run tests before publishing an image
Browse files Browse the repository at this point in the history
  • Loading branch information
eljohnson92 committed Apr 4, 2024
1 parent e3566e4 commit 7347671
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ on:
tags:
- "*"
workflow_dispatch:
workflow_run:
workflows: [go-build-test]
types: [completed]

jobs:
release:
build-push:
runs-on: ubuntu-latest
needs: go-build-test
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -29,6 +36,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 3 additions & 0 deletions .github/workflows/build_test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
paths-ignore:
- '**/**.md'
- 'docs/**'
workflow_dispatch:

permissions:
contents: read
Expand Down Expand Up @@ -111,6 +112,7 @@ jobs:
run: make gosec

- name: Vulncheck
continue-on-error: true
run: make vulncheck

- name: Nilcheck
Expand Down Expand Up @@ -194,6 +196,7 @@ jobs:
proxy.golang.org:443
sum.golang.org:443
go.dev:443
dl.google.com:443
golang.org:443
objects.githubusercontent.com:443
registry-1.docker.io:443
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
jobs:
release:
runs-on: ubuntu-latest
needs: go-build-test
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 7347671

Please sign in to comment.