Publish Image #83
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: Publish Image | |
on: | |
workflow_run: | |
workflows: [Main Tests] | |
types: [completed] | |
branches: [main] | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ghcr.io/ahamlinman/hypcast:latest | |
platforms: | | |
linux/amd64 | |
linux/arm64 | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |