Remove kuma.io/service from MeshGatewayInstance (#43) #14
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: | |
# Note we push docker images if the event was a git push | |
push: | |
branches: [master] | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Tag of image. Note that latest is used with the demo.yaml and kumactl! | |
required: true | |
type: string | |
push: | |
description: Whether to push the images | |
required: true | |
default: false | |
type: boolean | |
permissions: | |
contents: read | |
env: | |
DOCKER_REPO: kumahq/kuma-demo | |
PUSH_IMAGE: ${{ toJSON(github.event_name == 'push' || fromJSON(inputs.push)) }} | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
if: fromJSON(env.PUSH_IMAGE) | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ vars.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_API_KEY }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
push: ${{ fromJSON(env.PUSH_IMAGE) }} | |
platforms: linux/amd64, linux/arm64 | |
tags: ${{ env.DOCKER_REPO }}:${{ github.event_name == 'push' && 'dev' || inputs.tag }} |