kiwix-js-pwa/.github/workflows/publish-docker.yaml
Jaifroid aa7390a765 Update publish-docker.yaml
Former-commit-id: 1a2dd9045753bb176cfb2c23c4f7f03aeaf1e85d [formerly 774784fd5750890f7af18050e2f620cdf8be71de [formerly cc9adffef35a853edb2caac49d172ba8b63d28b1]]
Former-commit-id: 74a5441788e5fdb3b5bb835aef18b7a75fe3cc39
Former-commit-id: 3e3f5b291c97c163eac2ab267419211950e76bc8
2021-06-11 11:14:18 +01:00

39 lines
1.2 KiB
YAML

# Workflow to update docker image for pwa.kiwix.org (since docker autobuild has been disabled)
name: Docker
# Controls when the action will run.
on:
# Triggers the workflow when a release is publsihed or updated
release:
types: [ published ]
# Call this for testing from the REST API with '{"version":"{tag}"}'
# 'https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches'
workflow_dispatch:
inputs:
version:
description: Specific version to build (overrides on-master and tag-pattern)
required: false
default: ''
jobs:
build-and-push:
name: Deploy Docker Image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build and push
uses: openzim/docker-publish-action@v5
with:
image-name: kiwix/kiwix-pwa
credentials: |
DOCKERIO_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}
DOCKERIO_TOKEN=${{ secrets.DOCKERHUB_PASSWORD }}
tag-pattern: /^v([0-9.]+).*$/
latest-on-tag: true
dockerfile: Dockerfile.pwa
restrict-to: kiwix/kiwix-js-windows
registries: docker.io
manual-tag: ${{ github.event.inputs.version }}