Skip to content

Workflow file for this run

# name: publish-docker-image
# on:
# push:
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+'
# workflow_call:
# secrets:
# QUAYIO_REGISTRY_PASSWORD:
# required: true
# QUAYIO_REGISTRY_USERNAME:
# required: true
# jobs:
# build-docker:
# name: Build docker container, tag and upload to registry
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# packages: write
# contents: read
# steps:
# - uses: actions/checkout@v2
# - name: Set image version
# id: image-version
# run: echo '::set-output name=IMAGE_VERSION::v0.0.${{ github.run_number }}'
# - name: Set image name
# id: image-name
# run: echo '::set-output name=IMAGE_NAME::quay.io/${{ github.repository_owner }}/http-request'
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to Quay.io
# env: # Or as an environment variable
# QUAY_PASSWORD: ${{ secrets.QUAYIO_REGISTRY_PASSWORD }}
# QUAY_USERNAME: ${{ secrets.QUAYIO_REGISTRY_USERNAME }}
# run: docker login -u="${QUAY_USERNAME}" -p="${QUAY_PASSWORD}" quay.io
# - name: Build the Docker image
# run: docker buildx build . --file build/Dockerfile --tag ${{ steps.image-name.outputs.IMAGE_NAME }}:${{ steps.image-version.outputs.IMAGE_VERSION }} --tag ${{ steps.image-name.outputs.IMAGE_NAME }}:latest --build-arg image_version=${{ steps.image-version.outputs.IMAGE_VERSION }} --push --platform linux/amd64,linux/arm64