From 37273131d5b988fccb097401e5a2361e7ebb5b03 Mon Sep 17 00:00:00 2001 From: Reinaldo Oliveira Date: Fri, 20 Dec 2024 14:34:01 -0300 Subject: [PATCH] feat: add action to build and publish simulation service (#653) --- .github/workflows/simulation.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/simulation.yaml diff --git a/.github/workflows/simulation.yaml b/.github/workflows/simulation.yaml new file mode 100644 index 000000000..16cf7e874 --- /dev/null +++ b/.github/workflows/simulation.yaml @@ -0,0 +1,27 @@ +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 }}