Skip to content

update versioning tag and remove target runner #274

update versioning tag and remove target runner

update versioning tag and remove target runner #274

Workflow file for this run

name: build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Use Node.js 14.6.0
uses: actions/setup-node@v1
with:
node-version: '14.6.0'
- name: Install npm packages
run: |
npm i
env:
CI: true
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Get Branch Name
id: get-branch-name
run: echo "::set-output name=branch::$(echo $GITHUB_REF | sed 's/refs\/heads\//-/')"
- name: Build and push privatenet
uses: docker/build-push-action@v2
with:
file: Dockerfile
context: .
push: true
tags: provenanceio/explorer-frontend-generic:${{ steps.get-branch-name.outputs.branch }}