Skip to content

Merge branch 'master' of https://github.com/pacificclimate/climate-ex… #224

Merge branch 'master' of https://github.com/pacificclimate/climate-ex…

Merge branch 'master' of https://github.com/pacificclimate/climate-ex… #224

Workflow file for this run

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_CE_CURRENT_VERSION env var
run: |
git fetch --prune --unshallow
echo "REACT_APP_CE_CURRENT_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 }}
repository: pcic/climate-explorer-frontend
tag_with_ref: true
build_args: REACT_APP_CE_CURRENT_VERSION=${{ env.REACT_APP_CE_CURRENT_VERSION }}