Skip to content

Deploy Worker

Deploy Worker #1

Workflow file for this run

name: Deploy Worker
on:
workflow_dispatch:
jobs:
deploy-worker:
runs-on: ubuntu-latest
environment: pipeline-env
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to GHCR
run: echo "${{ secrets.REPO_ADMIN_GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.REPO_ADMIN_GH_USERNAME }}" --password-stdin
- name: Build worker service
run: |
WORKER_VERSION=$(python -B .github/parse_container_version.py worker)
WORKER_IMG="${{ vars.IMG_ROOT }}-worker:$WORKER_VERSION"
docker build --no-cache -f ./worker/Dockerfile-worker -t $WORKER_IMG .
docker push $WORKER_IMG