Skip to content

Commit

Permalink
Merge pull request #21 from dnstapir/successful_container
Browse files Browse the repository at this point in the history
Build container if test succeeds on main
  • Loading branch information
eest authored Sep 11, 2024
2 parents 8f0de3e + 28151a0 commit 0d01619
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 0d01619

Please sign in to comment.