Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #221 from eranco74/eran/MGMT-1166
Browse files Browse the repository at this point in the history
MGMT-1166 Added release.yaml to github workflow
  • Loading branch information
mareklibra authored Jun 16, 2020
2 parents b75a91f + b4f35a6 commit 0f63386
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and push

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Install dependencies
uses: borales/[email protected]
with:
cmd: install
- name: Call linter
uses: borales/[email protected]
with:
cmd: lint
- name: Build code
uses: borales/[email protected]
env:
NODE_OPTIONS: '--max-old-space-size=8192'
with:
cmd: build
- name: Get tag
id: get_tag
run: echo ::set-env name=GIT_TAG::${GITHUB_REF/refs\/tags\//}
- name: Publish to quay.io
uses: elgohr/[email protected]
with:
name: ocpmetal/ocp-metal-ui
username: ${{ secrets.QUAYIO_OCPMETAL_USERNAME }}
password: ${{ secrets.QUAYIO_OCPMETAL_PASSWORD }}
registry: quay.io
dockerfile: Dockerfile
tags: '${{ env.GIT_TAG }},${{ github.sha }}'
- name: Publish integration tests to quay.io
uses: elgohr/[email protected]
with:
name: ocpmetal/ocp-metal-ui-tests
username: ${{ secrets.QUAYIO_OCPMETAL_USERNAME }}
password: ${{ secrets.QUAYIO_OCPMETAL_PASSWORD }}
registry: quay.io
dockerfile: Dockerfile.cypress
tags: '${{ env.GIT_TAG }},${{ github.sha }}'

0 comments on commit 0f63386

Please sign in to comment.