Skip to content

Drop useless trailing / #14

Drop useless trailing /

Drop useless trailing / #14

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
build-and-deploy:
name: Build and deploy
runs-on: ubuntu-24.04
steps:
- name: Retrieve source code
uses: actions/checkout@v4
- name: Build and publish Docker Image for UI
uses: openzim/docker-publish-action@v10
with:
image-name: openzim/zimit-frontend-ui
on-master: latest
restrict-to: openzim/zimit-frontend
registries: ghcr.io
dockerfile: Dockerfile-ui
# prettier-ignore
credentials:
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
- name: Build and publish Docker Image for API
uses: openzim/docker-publish-action@v10
with:
image-name: openzim/zimit-frontend-api
on-master: latest
restrict-to: openzim/zimit-frontend
registries: ghcr.io
dockerfile: Dockerfile-api
# prettier-ignore
credentials:
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
- name: Deploy Zimit frontend UI changes to zimit.kiwix.org
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.ZIMIT_KUBE_CONFIG }}
with:
args: rollout restart deployments frontend-ui-deployment -n zimit
- name: Deploy Zimit frontend API changes to zimit.kiwix.org
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.ZIMIT_KUBE_CONFIG }}
with:
args: rollout restart deployments frontend-api-deployment -n zimit