Merge pull request #85 from Mixeway/feature/codeproject-branches #58
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: Deploy to Dockerhub with prod version | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
mixeway-scan: | |
name: Mixeway Scanning | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Prepare variables | |
id: vars | |
shell: bash | |
run: | | |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
echo "::set-output name=sha_short::$(git rev-parse HEAD)" | |
- name: Prepare Mixeway docker image | |
run: | | |
docker pull mixeway/scanner:latest | |
- name: Run Scan | |
run: | | |
docker run -e MODE=STANDALONE -e OSS_USERNAME=${{ secrets.oss_username }} -e OSS_KEY=${{ secrets.oss_key }} -e COMMIT_ID=${{ steps.vars.outputs.sha_short }} -e BRANCH=${{ steps.vars.outputs.branch }} -e MIXEWAY_PROJECT_NAME=${{ github.event.repository.name }} -e MIXEWAY_PROJECT_ID=${{ secrets.mixeway_project_id }} -e MIXEWAY_KEY=${{ secrets.mixeway_key }} -v $PWD:/opt/sources mixeway/scanner:latest | |
publishbrod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: docker actions build & deploy | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
repository: mixeway/frontend | |
tags: ${{ env.RELEASE_VERSION }} | |
env: | |
NODE_OPTIONS: –-max_old_space_size=8192 | |
- name: docker actions build & deploy | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
repository: mixeway/frontend | |
tags: latest | |
env: | |
NODE_OPTIONS: –-max_old_space_size=8192 |