Feat(ES-38): Implement the Visualization Service #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |