Skip to content

Commit

Permalink
Update redhat image and tags used during release process (#23)
Browse files Browse the repository at this point in the history
- Update image with missing storageos prefix on the docker release process
- Fix typo in action step
- Update redhat image and tag it used during release process
  • Loading branch information
Ricardo-Osorio authored Mar 30, 2022
1 parent 79e8f15 commit 66ae54f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/buld-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Set env var VERSION
run: echo "VERSION=${GITHUB_REF#refs/heads/release/}" >> $GITHUB_ENV
- name: Set env var IMAGE
run: echo "IMAGE=metrics-exporter:${{ env.VERSION }}" >> $GITHUB_ENV
run: echo "IMAGE=storageos/metrics-exporter:${{ env.VERSION }}" >> $GITHUB_ENV
- name: Build image
run: make docker-build
- name: Login to registry
Expand All @@ -123,9 +123,13 @@ jobs:
- name: Set env var VERSION
run: echo "VERSION=${GITHUB_REF#refs/heads/release/}" >> $GITHUB_ENV
- name: Set env var IMAGE
run: echo "IMAGE=scan.connect.redhat.com/${{ secrets.REDHAT_OSPID }}/metrics-exporter:${{ env.VERSION }}" >> $GITHUB_ENV
run: echo "IMAGE=storageos/metrics-exporter:${{ env.VERSION }}" >> $GITHUB_ENV
- name: Set env var REDHAT_IMAGE_TAG
run: echo "REDHAT_IMAGE_TAG=scan.connect.redhat.com/${{ secrets.REDHAT_OSPID }}/metrics-exporter:${{ env.VERSION }}" >> $GITHUB_ENV
- name: Build image
run: make docker-build
- name: Tag image
run: docker tag ${{ env.IMAGE }} ${{ env.REDHAT_IMAGE_TAG }}
- name: Login to registry
uses: docker/login-action@v1
with:
Expand All @@ -134,4 +138,4 @@ jobs:
password: ${{ secrets.REDHAT_TOKEN }}
logout: true
- name: Push image
run: docker docker-push
run: make docker-push IMAGE=${{ env.REDHAT_IMAGE_TAG }}

0 comments on commit 66ae54f

Please sign in to comment.