Fix error in build with latest alpine version #37
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: | |
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 TAG | |
id: get_tag | |
run: echo ::set-output name=TAG::latest-dev | |
- name: Get Repo Owner | |
id: get_repo_owner | |
run: > | |
echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | | |
tr '[:upper:]' '[:lower:]') | |
- name: Docker Login | |
run: > | |
echo ${{ secrets.GITHUB_TOKEN }} | | |
docker login ghcr.io --username | |
${{ steps.get_repo_owner.outputs.repo_owner }} | |
--password-stdin | |
- name: Publish functions | |
run: > | |
OWNER="${{ steps.get_repo_owner.outputs.repo_owner }}" | |
TAG="latest" | |
SERVER="ghcr.io" | |
faas-cli publish | |
--extra-tag ${{ github.sha }} | |
--platforms linux/arm/v7,linux/arm64,linux/amd64 |