diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74a21c7..19ee246 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,15 +1,13 @@ -name: Go +name: Build on: [push] jobs: build: - runs-on: ubuntu-latest strategy: matrix: go-version: ['1.22.4'] - steps: - uses: actions/checkout@v4 - name: Setup Go ${{ matrix.go-version }} diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 9959a05..7feb785 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -1,16 +1,20 @@ name: Build container on: - #schedule: - # - cron: "0 10 * * *" - push: + workflow_run: + workflows: + - "Build" branches: - "main" + types: + - completed + push: tags: - "v*.*.*" jobs: container: + if: ${{ github.event.workflow_run.conclusion == 'success' }} name: Build and push container runs-on: ubuntu-latest permissions: