Pretty print json payloads in the printer function. #42
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: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
packages: write | |
checks: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: Get faas-cli | |
run: curl -sLSf https://cli.openfaas.com | sudo sh | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Get Repo Owner | |
id: get_repo_owner | |
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" > $GITHUB_ENV | |
- name: Docker Login | |
run: > | |
echo ${{ secrets.GITHUB_TOKEN }} | | |
docker login ghcr.io --username | |
${{ env.REPO_OWNER }} | |
--password-stdin | |
- name: Publish multi-arch functions | |
run: > | |
OWNER="${{ env.REPO_OWNER }}" | |
TAG="latest" | |
SERVER="ghcr.io" | |
faas-cli publish | |
--extra-tag ${{ github.sha }} | |
--build-arg GO111MODULE=on | |
--platforms linux/arm/v7,linux/arm64,linux/amd64 | |
- name: Publish amd64-only functions | |
run: > | |
OWNER="${{ env.REPO_OWNER }}" | |
TAG="latest" | |
SERVER="ghcr.io" | |
faas-cli publish | |
--extra-tag ${{ github.sha }} | |
--platforms linux/amd64 | |
-f stack-amd64.yml | |