This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
ci: fixes the OCI image push (#448) #121
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: push-wasm-images | |
on: | |
push: | |
branches: | |
- main | |
env: | |
TINYGO_VERSION: 0.32.0 | |
jobs: | |
build-and-push-wasm-images: | |
name: Build and push Wasm images | |
runs-on: ubuntu-latest | |
steps: | |
- name: install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: Install TinyGo | |
run: | | |
wget https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VERSION}/tinygo_${TINYGO_VERSION}_amd64.deb | |
sudo dpkg -i tinygo_${TINYGO_VERSION}_amd64.deb | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build examples | |
run: make build.examples | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build/Push Docker images | |
run: make wasm_image.build_push | |
- name: Build/Push OCI images | |
run: make wasm_image.build_push_oci |