fix: package.json & package-lock.json to reduce vulnerabilities #244
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_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 }} |