Skip to content

Commit

Permalink
Separate build from container workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <[email protected]>
  • Loading branch information
nicolasbock committed Jul 10, 2024
1 parent 3bb5115 commit 325f442
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dependency-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ permissions:
jobs:
dependency-review:
runs-on: ubuntu-latest

steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4

- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
15 changes: 4 additions & 11 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: Publish to Docker Hub

on:
schedule:
- cron: '31 13 * * *'
push:
branches: [ "main" ]
tags:
- 'v*.*.*' # v0.1.2
- 'v2*-*' # v20240613-1
pull_request:
branches: [ "main" ]
workflow_dispatch:
workflow_run:
workflows: [Build and Test]
types:
- completed

env:
REGISTRY: docker.io
Expand All @@ -19,7 +13,6 @@ env:

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/ghcr-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
name: Docker publish (ghcr.io)

on:
schedule:
- cron: '38 11 * * *'
push:
branches: [ "main" ]
tags:
- 'v*.*.*' # v0.1.2
- 'v2*-*' # v20240613-1
pull_request:
branches: [ "main" ]
workflow_dispatch:
workflow_run:
workflows: [Build and Test]
types:
- completed

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/issues.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Issues Sync

on:
issues:
types: opened

jobs:
sync-issues:
runs-on: ubuntu-latest

steps:
- uses: alex-page/[email protected]
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: Build and Test

on:
schedule:
- cron: '38 11 * * *'
push:
branches:
- main
tags:
- 'v*.*.*' # v0.1.2
- 'v2*-*' # v20240613-1
pull_request:
branches:
- main
workflow_dispatch:

name: Tests/Jobs for main branch merges
jobs:
test:
strategy:
Expand Down

0 comments on commit 325f442

Please sign in to comment.