Bump github.com/docker/docker from 24.0.5+incompatible to 24.0.7+incompatible #355
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 | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- | |
uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Local docker build (non-root image) | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: false | |
platforms: linux/amd64 | |
target: release | |
build-args: | | |
VERSION=latest-dev | |
GIT_COMMIT=${{ github.sha }} | |
REPO_URL=https://github.com/openfaas/faas-cli | |
load: true | |
tags: openfaas/faas-cli:${{ github.sha }} | |
- | |
name: Test for multi-arch build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: false | |
load: false | |
platforms: linux/amd64,linux/arm/v7,linux/arm64 | |
target: release | |
build-args: | | |
VERSION=latest-dev | |
GIT_COMMIT=${{ github.sha }} | |
REPO_URL=https://github.com/openfaas/faas-cli | |
tags: openfaas/faas-cli:${{ github.sha }} | |
- | |
name: Copy binary to host | |
run: | | |
docker create --name faas-cli openfaas/faas-cli:${{ github.sha }} && \ | |
mkdir -p ./bin && \ | |
docker cp faas-cli:/usr/bin/faas-cli ./bin && \ | |
docker rm -f faas-cli | |
- | |
name: Build samples | |
run: ./build_samples.sh | |
- | |
name: Test version | |
run: ./test/version.sh ./bin/faas-cli | |
- | |
name: Test the cli and the function behaviour | |
run: make test-templating |