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 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not tag :stable for non-master branches on release
- Loading branch information
1 parent
98277c1
commit 17b0047
Showing
1 changed file
with
12 additions
and
2 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 |
---|---|---|
|
@@ -14,10 +14,19 @@ jobs: | |
echo "NODE_OPTIONS=--max-old-space-size=8192" >> $GITHUB_ENV | ||
echo "REACT_APP_GIT_SHA=${{ github.sha }}" >> $GITHUB_ENV | ||
echo "REACT_APP_VERSION=${{ env.GIT_TAG }}" >> $GITHUB_ENV | ||
- name: Set IMAGE_TAGS env variable | ||
if: github.ref == 'refs/heads/master' | ||
run: | | ||
echo "IMAGE_TAGS=stable,${{ github.sha }},${{ env.GIT_TAG }}" >> $GITHUB_ENV | ||
- name: Set IMAGE_TAGS env variable | ||
if: github.ref != 'refs/heads/master' | ||
run: | | ||
echo "IMAGE_TAGS=${{ github.sha }},${{ env.GIT_TAG }}" >> $GITHUB_ENV | ||
- run: | | ||
echo NODE_OPTIONS: ${NODE_OPTIONS} | ||
echo REACT_APP_GIT_SHA: ${REACT_APP_GIT_SHA} | ||
echo REACT_APP_VERSION: ${REACT_APP_VERSION} | ||
echo IMAGE_TAGS: ${IMAGE_TAGS} | ||
- name: Get tag | ||
id: get_tag | ||
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
@@ -45,7 +54,7 @@ jobs: | |
password: ${{ secrets.QUAYIO_OCPMETAL_PASSWORD }} | ||
registry: quay.io | ||
dockerfile: Dockerfile | ||
tags: "stable,${{ env.GIT_TAG }},${{ github.sha }}" | ||
tags: '${{ env.IMAGE_TAGS }}' | ||
- name: Publish integration tests to quay.io | ||
uses: elgohr/[email protected] | ||
with: | ||
|
@@ -54,4 +63,5 @@ jobs: | |
password: ${{ secrets.QUAYIO_OCPMETAL_PASSWORD }} | ||
registry: quay.io | ||
dockerfile: Dockerfile.cypress | ||
tags: "stable,${{ env.GIT_TAG }},${{ github.sha }}" | ||
tags: '${{ env.IMAGE_TAGS }}' | ||
|