Merge pull request #2008 from HSLdevcom/develop #22
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: 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 }} |