Skip to content

Publish Simulation Service #2

Publish Simulation Service

Publish Simulation Service #2

Workflow file for this run

name: Publish Simulation Service
on:
workflow_dispatch:
jobs:
build-and-push:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get the version (release tag)
run: echo "IMAGE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./
file: ./simulation/Dockerfile
push: true
tags: tfgco/maestro-simulation:${{ env.IMAGE_VERSION }}