Skip to content

Adding python image based on ubuntu 24.04 #1

Adding python image based on ubuntu 24.04

Adding python image based on ubuntu 24.04 #1

Workflow file for this run

name: Publish the images
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
env:
REGISTRY_IMAGE_PREFIX: "quay.io/giskard/"
jobs:
build:
strategy:
matrix:
element: ["python"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Docker Buildx
id: builder
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# V2.0.0b24 does not respect semver, or whatever
# Let's just use regex
# https://github.com/docker/metadata-action#typematch
images: |
${{ env.REGISTRY_IMAGE_PREFIX }}${{ matrix.element }}
# flavor: |
# latest=${{ github.ref_type == 'tag' }}
# tags: |
# type=raw,enable=true,value=${{ env.VERSION_NUMBER }}
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Push
id: push
uses: docker/build-push-action@v5
with:
context: ./${{ matrix.element }}
target: prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
# outputs: type=image,name=${{ env.REGISTRY_IMAGE_BACKEND }},push-by-digest=true,name-canonical=true,push=true
# merge:
# runs-on: ubuntu-latest
# if: github.ref_type == 'tag'
# needs:
# - build
# steps:
# - name: Create Github Release
# id: github-release
# uses: softprops/action-gh-release@v2
# with:
# tag_name: ${{ github.ref_name }}
# generate_release_notes: true