diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index f74d9e78e..0f5e6a8a4 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 with: ref: master - - name: Build UI and publish Docker image + - name: Build UI and publish prod Docker image uses: elgohr/Publish-Docker-Github-Action@v5 with: name: hsldevcom/jore-map-ui @@ -25,3 +25,13 @@ jobs: tags: production env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build UI and publish stage Docker image + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: hsldevcom/jore-map-ui + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} + buildargs: APP_ENVIRONMENT=stage, APP_REACT_APP_DIGITRANSIT_API_KEY=${{ secrets.JOREMAPUI_DIGITRANSITAPIKEY_PROD }}, APP_DOMAIN_NAME=${{ secrets.APP_DOMAIN_STAGE }}, APP_BUILD_DATE=${{ steps.date.outputs.date }} + tags: production + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}