This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from eranco74/eran/MGMT-1166
MGMT-1166 Added release.yaml to github workflow
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
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 }}' |