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

Commit

Permalink
Do not tag :stable for non-master branches on release
Browse files Browse the repository at this point in the history
  • Loading branch information
mareklibra committed Feb 10, 2021
1 parent 98277c1 commit 17b0047
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}'

0 comments on commit 17b0047

Please sign in to comment.