Remove all other actions [DNM] #1
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: | |
publish-utils-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
- name: Build and push | |
run: | | |
sudo apt update | |
sudo apt install -y uuid | |
./hack/fetch-util-img-prerequisites.sh | |
docker buildx create --name multiarch --driver docker-container --use | |
docker buildx build . -f Dockerfile.utils \ | |
--platform=linux/ppc64le,linux/s390x,linux/amd64,linux/arm64 \ | |
--push \ | |
-t "ttl.sh/$(uuid)/func-utils:10m" \ | |
--annotation index:org.opencontainers.image.description="Knative Func Utils Image" \ | |
--annotation index:org.opencontainers.image.source="https://github.com/knative/func" \ | |
--annotation index:org.opencontainers.image.vendor="https://github.com/knative/func" \ | |
--annotation index:org.opencontainers.image.url="https://github.com/knative/func/pkgs/container/func-utils" |