mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 11:22:38 -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
|
name: Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: Specific version to build (overrides on-master and tag-pattern)
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@ -11,7 +14,7 @@ jobs:
|
|||||||
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@v4
|
- uses: openzim/docker-publish-action@v5
|
||||||
with:
|
with:
|
||||||
image-name: kiwix/kiwix-tools
|
image-name: kiwix/kiwix-tools
|
||||||
credentials: |
|
credentials: |
|
||||||
@ -20,17 +23,17 @@ jobs:
|
|||||||
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
|
||||||
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
|
||||||
context: docker
|
context: docker
|
||||||
tag-pattern: /^([0-9.]+)$/
|
|
||||||
latest-on-tag: true
|
latest-on-tag: true
|
||||||
build-args:
|
build-args:
|
||||||
VERSION={version}
|
VERSION={tag}
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm/v7
|
linux/arm/v7
|
||||||
linux/arm64
|
linux/arm64
|
||||||
restrict-to: kiwix/kiwix-tools
|
restrict-to: kiwix/kiwix-tools
|
||||||
|
manual-tag: ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
- uses: openzim/docker-publish-action@v4
|
- uses: openzim/docker-publish-action@v5
|
||||||
with:
|
with:
|
||||||
image-name: kiwix/kiwix-serve
|
image-name: kiwix/kiwix-serve
|
||||||
credentials: |
|
credentials: |
|
||||||
@ -42,9 +45,10 @@ jobs:
|
|||||||
tag-pattern: /^([0-9.]+)$/
|
tag-pattern: /^([0-9.]+)$/
|
||||||
latest-on-tag: true
|
latest-on-tag: true
|
||||||
build-args:
|
build-args:
|
||||||
VERSION={version}
|
VERSION={tag}
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm/v7
|
linux/arm/v7
|
||||||
linux/arm64
|
linux/arm64
|
||||||
restrict-to: kiwix/kiwix-tools
|
restrict-to: kiwix/kiwix-tools
|
||||||
|
manual-tag: ${{ github.event.inputs.version }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user