Skip to content

Commit

Permalink
using two jobs to isolate envs
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Jan 8, 2021
1 parent b7d884c commit a3ed7ad
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker.yml
Expand Up @@ -9,12 +9,13 @@ on:
default: ''

jobs:
build-and-push:
name: Deploy Docker Image
build-and-push-kiwix-tools:
name: Deploy kiwix-tools Docker Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: openzim/docker-publish-action@v5
- name: build and publish kiwix-tools
uses: openzim/docker-publish-action@v5
with:
image-name: kiwix/kiwix-tools
credentials: |
Expand All @@ -33,7 +34,14 @@ jobs:
restrict-to: kiwix/kiwix-tools
manual-tag: ${{ github.event.inputs.version }}

- uses: openzim/docker-publish-action@v5
build-and-push-kiwix-serve:
name: Deploy kiwix-serve Docker Image
runs-on: ubuntu-20.04
needs: build-and-push-kiwix-tools
steps:
- uses: actions/checkout@v2
- name: build and publish kiwix-serve
uses: openzim/docker-publish-action@v5
with:
image-name: kiwix/kiwix-serve
credentials: |
Expand All @@ -42,7 +50,6 @@ jobs:
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
context: docker/server
tag-pattern: /^([0-9.]+)$/
latest-on-tag: true
build-args:
VERSION={tag}
Expand Down

0 comments on commit a3ed7ad

Please sign in to comment.