mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-21 02:44:04 -04:00
using two jobs to isolate envs
This commit is contained in:
parent
b7d884ceb2
commit
a3ed7ad3e1
17
.github/workflows/docker.yml
vendored
17
.github/workflows/docker.yml
vendored
@ -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: |
|
||||
@ -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: |
|
||||
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user