Build #7
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: Build | |
on: | |
workflow_run: | |
workflows: ["Test"] | |
types: | |
- completed | |
jobs: | |
build: | |
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build --file Dockerfile --tag ghcr.io/jamie6king/skycast:latest . | |
- name: Upload the Docker image | |
run: | | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username jamie6king --password-stdin | |
docker push ghcr.io/jamie6king/skycast:latest |