Skip to content

v0.0.8

v0.0.8 #1

Workflow file for this run

name: Quay Publish
on:
release:
types: [published]
permissions:
contents: read
env:
REGISTRY: quay.io
# github.repository as account/repo
IMAGE_NAME: project_pdl/pdl
jobs:
# Build and push a multi-platform Docker image to Docker Hub
publish-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_TOKEN }}
- name: Build and push ${{ github.ref_name }} to ${{ env.REGISTRY }}
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest