Applying changes for #445 #24
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: Docker API | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'scheduler/**' | |
tags: | |
- 'scheduler-**' | |
jobs: | |
manager: | |
name: Deploy API Image (scheduler) | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Publish Docker Image | |
uses: openzim/docker-publish-action@v10 | |
with: | |
image-name: offspot/cardshop-scheduler | |
on-master: latest | |
restrict-to: offspot/imager-service | |
context: scheduler | |
registries: ghcr.io | |
credentials: | |
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }} | |
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }} | |
- name: Deploy API changes on k8s | |
uses: actions-hub/kubectl@master | |
env: | |
KUBE_CONFIG: ${{ secrets.CARDSHOP_KUBE_CONFIG }} | |
with: | |
args: rollout restart deployments api-deployment -n cardshop |