optimizer CD #276
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: optimizer CD | |
on: | |
workflow_run: | |
workflows: ["optimizer 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 microservices/optimizer && docker build -t ghcr.io/jakejack13/speed-optimizer:latest . | |
- name: Deploy | |
run: docker push ghcr.io/jakejack13/speed-optimizer:latest |