Skip to content

4.3.1

4.3.1 #36

Workflow file for this run

name: main
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18.16.1'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '4.2'
- run: npm install
- run: npm run build
- run: npm test
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
tags: jsreport/playground:${{ github.event.release.tag_name }}
- shell: bash
env:
KUBERNETES: ${{ secrets.KUBERNETES }}
TAG: ${{ github.event.release.tag_name }}
run: |
git clone https://github.com/pofider/kubernetes.git
cd kubernetes
git checkout -b playground-${TAG}
git config --global user.name "pofider"
git config --global user.email "[email protected]"
sed -i 's/'"jsreport\/playground"'\:\(.*\)/'"jsreport\/playground"'\:'"${TAG}"'/' ./config/prod/playground.yaml
git add config/prod/playground.yaml
git commit -m "Update the playground application"
remote_repo="https://pofider:${KUBERNETES}@github.com/pofider/kubernetes.git"
git push "${remote_repo}" HEAD:playground-${TAG}