2.9.0 #20
This file contains hidden or 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
# This is a basic workflow to help you get started with Actions | |
name: CI-MAIN | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [master] | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: version | |
run: | | |
git checkout -f -b version-branch | |
npm version patch -m "$(git log -1 --pretty=%B) .... bump version [skip ci]" | |
git push origin version-branch:master --follow-tags | |
- name: build | |
run: | | |
docker login --username yehiyam --password ${DOCKER_HUB_PASS} | |
PRIVATE_REGISTRY=docker.io/hkube npm run build | |
env: | |
DOCKER_HUB_PASS: ${{ secrets.DOCKER_PASSWORD }} | |