mirror of
https://github.com/openzim/zimit.git
synced 2025-12-31 04:23:15 +00:00
27 lines
676 B
YAML
27 lines
676 B
YAML
name: Docker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- v*
|
|
|
|
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@v1
|
|
with:
|
|
image-path: openzim/zimit
|
|
on-master: dev
|
|
tag-pattern: /^v([0-9.]+)$/
|
|
latest-on-tag: true
|
|
restrict-to: openzim/zimit
|
|
hub-username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
hub-password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
ghcr-username: ${{ secrets.GHCR_USERNAME }}
|
|
ghcr-token: ${{ secrets.GHCR_TOKEN }}
|