Update package.json #139
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 | |
on: | |
push: | |
tags: | |
- v* | |
env: | |
DOCKERHUB_URL: ghcr.io/nexys-system/core/master | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to DockerHub Registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 17 | |
- run: yarn | |
- run: yarn build | |
- name: create docker container | |
run: docker build --build-arg GIT_SHA=$GITHUB_SHA --build-arg GIT_VERSION=${GITHUB_REF##*/} --tag $DOCKERHUB_URL:latest --tag $DOCKERHUB_URL:master --tag $DOCKERHUB_URL:${GITHUB_REF##*/} . | |
- name: Push | |
run: docker push --all-tags $DOCKERHUB_URL |