Skip to content

Commit

Permalink
Merge pull request #421 from neilcook/docker_minimal
Browse files Browse the repository at this point in the history
Move docker minimal building to separate parallel workflow for speed
  • Loading branch information
neilcook authored May 1, 2024
2 parents 79ce7d8 + b666852 commit cf89bd8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-minimal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 'Build minimal docker image'

on:
push:
pull_request:

jobs:
docker_test:
name: docker_test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- run: cd docker/wforce_image && docker buildx build -f Dockerfile.minimal weakforced -t powerdns/wforce-minimal:`git describe --tags` --load
- run: cd docker && bash docker_push.sh "powerdns/wforce-minimal"
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
9 changes: 2 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: 'Run docker tests'
name: 'Build docker image and test'

on:
push:
Expand Down Expand Up @@ -32,9 +32,4 @@ jobs:
- run: cd docker && bash docker_push.sh "powerdns/wforce"
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
- run: cd docker/wforce_image && docker buildx build -f Dockerfile.minimal weakforced -t powerdns/wforce-minimal:`git describe --tags` --load
- run: cd docker && bash docker_push.sh "powerdns/wforce-minimal"
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

0 comments on commit cf89bd8

Please sign in to comment.