Skip to content

Update package.json #143

Update package.json

Update package.json #143

Workflow file for this run

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