Skip to content

Feat(ES-38): Implement the Visualization Service #21

Feat(ES-38): Implement the Visualization Service

Feat(ES-38): Implement the Visualization Service #21

name: buildAndPushImage
on:
push:
branches:
- 'main'
- 'dev'
- 'nightly'
pull_request:
branches:
- 'main'
env:
IMAGE_URL: ghcr.io/ust-demaf
IMAGE_NAME: visualization-service
IMAGE_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || github.ref == 'refs/heads/dev' && 'testing' || 'nightly' }}
jobs:
build-using-dockerfile-push-2-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u well5a --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag $IMAGE_URL/$IMAGE_NAME:$IMAGE_TAG
- name: Push the Docker image
run: docker push $IMAGE_URL/$IMAGE_NAME:$IMAGE_TAG