- #178 Continue use of react-query for server state management #221
Workflow file for this run
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: 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 }} |