Skip to content

Commit

Permalink
Build docker images in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Oct 13, 2022
1 parent 8832395 commit ccf1bc0
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/docker.yml
Expand Up @@ -6,7 +6,8 @@ on:
- master

jobs:
path-context:
apache:
name: Build apache image
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,7 +25,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build apache image
- name: Build image
uses: docker/build-push-action@v3.2.0
with:
context: .
Expand All @@ -33,7 +34,26 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: wger/demo:latest,wger/demo:2.2-dev,wger/apache:latest,wger/apache:2.2-dev

- name: Build dev image
prod:
name: Build production image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2.1.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.1.0

- name: Login to DockerHub
uses: docker/login-action@v2.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build image
uses: docker/build-push-action@v3.2.0
with:
context: .
Expand Down

0 comments on commit ccf1bc0

Please sign in to comment.