|
|
|
|
@ -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}
|
|
|
|
|
|