Skip to content

chore: update to polywrap #42

chore: update to polywrap

chore: update to polywrap #42

Workflow file for this run

name: build
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
polywrap/tinygo
tags: |
type=sha,format=long
type=raw,value=latest
type=semver,pattern={{version}}
labels: |
org.opencontainers.image.title=TinyGo
org.opencontainers.image.description=Go compiler for small places. Microcontrollers, WebAssembly, and command-line tools. Based on LLVM.
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: polywrapbuildbot
password: ${{ secrets.POLYWRAP_BUILD_BOT_DOCKERHUB_PAT }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm'
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}