Skip to content

Commit

Permalink
feat: add docker image release workflow (#274)
Browse files Browse the repository at this point in the history
Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
  • Loading branch information
s0nicboOm authored Aug 29, 2023
1 parent f4ff3ac commit 62364c9
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker Image Push

on:
push:
tags:
- v*
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3

- name: Docker Login
uses: docker/login-action@v2.1.0
with:
registry: quay.io
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_PASSWORD }}

- name: Docker Build
env:
QUAYIO_ORG: quay.io/numaio
PLATFORM: linux/x86_64
TARGET: numalogic/udf
run: |
type=$(basename $(dirname $GITHUB_REF))
tag=$(basename $GITHUB_REF)
if [[ $type == "heads" ]]; then
tag="$(basename $GITHUB_REF)v${{ env.version }}"
fi
image_name="${QUAYIO_ORG}/numalogic/udf:${tag}"
docker buildx build \
--output "type=image,push=true" \
--platform="${PLATFORM}" \
--build-arg INSTALL_EXTRAS='redis druid'
--tag $image_name .

0 comments on commit 62364c9

Please sign in to comment.