mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 12:00:21 -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: ''
|
default: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push-kiwix-tools:
|
||||||
name: Deploy Docker Image
|
name: Deploy kiwix-tools Docker Image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: openzim/docker-publish-action@v5
|
- name: build and publish kiwix-tools
|
||||||
|
uses: openzim/docker-publish-action@v5
|
||||||
with:
|
with:
|
||||||
image-name: kiwix/kiwix-tools
|
image-name: kiwix/kiwix-tools
|
||||||
credentials: |
|
credentials: |
|
||||||
@ -33,7 +34,14 @@ jobs:
|
|||||||
restrict-to: kiwix/kiwix-tools
|
restrict-to: kiwix/kiwix-tools
|
||||||
manual-tag: ${{ github.event.inputs.version }}
|
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:
|
with:
|
||||||
image-name: kiwix/kiwix-serve
|
image-name: kiwix/kiwix-serve
|
||||||
credentials: |
|
credentials: |
|
||||||
@ -42,7 +50,6 @@ jobs:
|
|||||||
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
||||||
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
||||||
context: docker/server
|
context: docker/server
|
||||||
tag-pattern: /^([0-9.]+)$/
|
|
||||||
latest-on-tag: true
|
latest-on-tag: true
|
||||||
build-args:
|
build-args:
|
||||||
VERSION={tag}
|
VERSION={tag}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user