switch logger back to process.env variable #256
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: Docker Publishing | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Export REACT_APP_APP_VERSION env var | |
run: | | |
git fetch --prune --unshallow | |
echo "REACT_APP_APP_VERSION=$(git describe --tags --abbrev=0) ($(git rev-parse --abbrev-ref HEAD):$(git log -1 --format=%h))" >> $GITHUB_ENV | |
- name: Build npm package | |
run: | | |
npm ci | |
npm run build | |
- name: Publish to Registry | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.pcicdevops_at_dockerhub_username }} | |
password: ${{ secrets.pcicdevops_at_dockerhub_password }} | |
dockerfile: docker/Dockerfile | |
repository: pcic/station-data-portal-frontend | |
tag_with_ref: true | |
build_args: REACT_APP_APP_VERSION=${{ env.REACT_APP_APP_VERSION }} |