Build and push images for grpc-responder #2
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 and push images for grpc-responder | |
on: | |
workflow_dispatch: | |
inputs: | |
imageTag: | |
description: "container image tag" | |
required: false | |
default: latest | |
type: string | |
workflow_call: | |
inputs: | |
imageTag: | |
description: "container image tag" | |
required: false | |
default: latest | |
type: string | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build-container: | |
permissions: | |
contents: write | |
packages: write # push images | |
id-token: write # needed for signing the images with GitHub OIDC Token | |
name: build container | |
runs-on: ubuntu-latest | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
overprovision-lvm: 'true' | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Login to ghcr.io | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: kedify | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
run: | | |
cd samples/grpc-responder/ | |
make docker-publish-multiarch |