Navigate to new view only if request creation succeeded + better erro… #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 zimit-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 zimit-frontend-api-deployment -n zimit |