Skip to content

Merge pull request #2010 from HSLdevcom/develop #24

Merge pull request #2010 from HSLdevcom/develop

Merge pull request #2010 from HSLdevcom/develop #24

Workflow file for this run

name: Deploy prod
on:
push:
branches:
- master
jobs:
deploy-prod:
runs-on: ubuntu-latest
steps:
- name: Set current date to be accessible later with steps.date.outputs.date
id: date
run: echo "::set-output name=date::$(TZ='Europe/Helsinki' date +'%d.%m.%Y_%H:%M')"
- uses: actions/checkout@v4
with:
ref: master
- name: Build UI and publish prod 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=prod, APP_REACT_APP_DIGITRANSIT_API_KEY=${{ secrets.JOREMAPUI_DIGITRANSITAPIKEY_PROD }}, APP_DOMAIN=${{ secrets.APP_DOMAIN_PROD }}, APP_BUILD_DATE=${{ steps.date.outputs.date }}
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=${{ secrets.APP_DOMAIN_STAGE }}, APP_BUILD_DATE=${{ steps.date.outputs.date }}
tags: production
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}