mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-21 10:58:15 -04:00
Support for non-release builds
- only building on workflow_dispatch with a specified version that can be a release or release-build
This commit is contained in:
parent
ccb8d11dce
commit
19322958b3
18
.github/workflows/docker.yml
vendored
18
.github/workflows/docker.yml
vendored
@ -1,9 +1,12 @@
|
||||
name: Docker
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: Specific version to build (overrides on-master and tag-pattern)
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
@ -11,7 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: openzim/docker-publish-action@v4
|
||||
- uses: openzim/docker-publish-action@v5
|
||||
with:
|
||||
image-name: kiwix/kiwix-tools
|
||||
credentials: |
|
||||
@ -20,17 +23,17 @@ jobs:
|
||||
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
||||
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
||||
context: docker
|
||||
tag-pattern: /^([0-9.]+)$/
|
||||
latest-on-tag: true
|
||||
build-args:
|
||||
VERSION={version}
|
||||
VERSION={tag}
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm/v7
|
||||
linux/arm64
|
||||
restrict-to: kiwix/kiwix-tools
|
||||
manual-tag: ${{ github.event.inputs.version }}
|
||||
|
||||
- uses: openzim/docker-publish-action@v4
|
||||
- uses: openzim/docker-publish-action@v5
|
||||
with:
|
||||
image-name: kiwix/kiwix-serve
|
||||
credentials: |
|
||||
@ -42,9 +45,10 @@ jobs:
|
||||
tag-pattern: /^([0-9.]+)$/
|
||||
latest-on-tag: true
|
||||
build-args:
|
||||
VERSION={version}
|
||||
VERSION={tag}
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm/v7
|
||||
linux/arm64
|
||||
restrict-to: kiwix/kiwix-tools
|
||||
manual-tag: ${{ github.event.inputs.version }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user