Skip to content

chore: bumped products-reportek to 100.2.0 and added version.txt #31

chore: bumped products-reportek to 100.2.0 and added version.txt

chore: bumped products-reportek to 100.2.0 and added version.txt #31

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- z5
tags:
- 'z5-*'
workflow_dispatch:
env:
DOCKER_IMAGE: eeacms/reportek-base-dr
jobs:
build:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_IMAGE }}
tags: |
# On z5 branch push: tag as z5-latest
type=raw,value=z5-latest,enable=${{ github.ref == 'refs/heads/z5' }}
# On z5-* tag push: use the git tag as-is (e.g. z5-1.0)
type=ref,event=tag
# On z5-* tag push: also tag as z5-latest
type=raw,value=z5-latest,enable=${{ startsWith(github.ref, 'refs/tags/z5-') }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to DHI Registry
uses: docker/login-action@v3
with:
registry: dhi.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
provenance: false
push: true
tags: ${{ steps.meta.outputs.tags }}
no-cache: true