Skip to content

OM-174 - Fixed docker issues (#108) #44

OM-174 - Fixed docker issues (#108)

OM-174 - Fixed docker issues (#108) #44

Workflow file for this run

name: Docker
on:
push:
tags:
- v*
workflow_dispatch:
inputs:
docker_tag:
description: Docker Tag
required: false
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set env
run: |
echo "DOCKER_TAG=$(echo $GITHUB_REF_NAME | cut -c 2-)" >> $GITHUB_ENV
- name: Build and push
run: |
if [ "${{ github.event.inputs.docker_tag }}" == "" ]; then
echo "Creating Docker Images with given Docker Tag with GITHUB_REF_NAME - ".${{ env.DOCKER_TAG }}
make VERSION=${{ env.DOCKER_TAG }} release-docker-multi-arch
else
echo "Creating Docker Images with Input Docker Tag value ".${{ github.event.inputs.docker_tag }}
make VERSION=${{ github.event.inputs.docker_tag }} release-docker-multi-arch
fi