leaders CD #299
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: 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 |