Skip to content

leaders CD

leaders CD #297

Workflow file for this run

name: leaders CD
on:
workflow_run:
workflows: ["leaders CI"]
branches: [main]
types:
- completed
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Docker Login
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u jakejack13 --password-stdin
- uses: actions/checkout@v4
- name: Build
run: cd workers && docker build -t ghcr.io/jakejack13/speed-leaders:latest .
- name: Deploy
run: docker push ghcr.io/jakejack13/speed-leaders:latest