Updates image name, and uses spago@next
#13
Workflow file for this run
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 and Push Purescript-Tools image | |
on: | |
push: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build and push purescript-tools | |
runs-on: [self-hosted, linux, x64] | |
steps: | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker metadata | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ghcr.io/exfreight-zeta/purescript-tools | |
tags: | | |
type=sha,format=short,prefix= | |
type=raw,value=latest,enable={{is_default_branch}} | |
- name: Build, tag, and push image to GCR | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
cache-from: type=gha,mode=max,ignore-error=true | |
cache-to: type=gha,mode=max,ignore-error=true | |
platforms: 'linux/amd64, linux/arm64' | |
provenance: false |