[WIP] Build func util img #8
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 Images | |
on: [pull_request] | |
jobs: | |
build: | |
name: Build job | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/composite/go-setup | |
- name: Install uuid | |
run: | | |
sudo apt-get update | |
sudo apt-get install uuid | |
- name: Build binaries | |
run: make func_linux_amd64 func_linux_arm64 func_linux_ppc64le func_linux_s390x | |
- name: Build images | |
run: | | |
docker buildx create --name multiarch --driver docker-container --use | |
docker buildx build . \ | |
--platform=linux/ppc64le,linux/s390x,linux/amd64,linux/arm64 \ | |
--push \ | |
-t "ttl.sh/knative-func/test-img-$(uuid):2h" |