mirror of https://github.com/kiwix/kiwix-tools.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.0 KiB
68 lines
2.0 KiB
name: Docker
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Specific version to build (overrides on-master and tag-pattern)
|
|
required: false
|
|
default: ''
|
|
|
|
jobs:
|
|
build-and-push-kiwix-tools:
|
|
name: Deploy kiwix-tools Docker Image
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3.4.0
|
|
- name: build and publish kiwix-tools
|
|
uses: openzim/docker-publish-action@v10
|
|
with:
|
|
image-name: kiwix/kiwix-tools
|
|
registries: ghcr.io
|
|
credentials: |
|
|
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
|
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
|
context: docker
|
|
latest-on-tag: true
|
|
build-args:
|
|
VERSION={tag}
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
linux/arm/v7
|
|
linux/arm/v6
|
|
linux/386
|
|
restrict-to: kiwix/kiwix-tools
|
|
manual-tag: ${{ github.event.inputs.version }}
|
|
repo_description: auto
|
|
repo_overview: Kiwix command line tools
|
|
|
|
build-and-push-kiwix-serve:
|
|
name: Deploy kiwix-serve Docker Image
|
|
runs-on: ubuntu-22.04
|
|
needs: build-and-push-kiwix-tools
|
|
steps:
|
|
- uses: actions/checkout@v3.4.0
|
|
- name: build and publish kiwix-serve
|
|
uses: openzim/docker-publish-action@v10
|
|
with:
|
|
image-name: kiwix/kiwix-serve
|
|
registries: ghcr.io
|
|
credentials: |
|
|
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
|
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
|
context: docker/server
|
|
latest-on-tag: true
|
|
build-args:
|
|
VERSION={tag}
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
linux/arm/v7
|
|
linux/arm/v6
|
|
linux/386
|
|
restrict-to: kiwix/kiwix-tools
|
|
manual-tag: ${{ github.event.inputs.version }}
|
|
repo_description: auto
|
|
repo_overview: Kiwix web-server
|