Skip to content

Commit

Permalink
Fix GitHub action workflow file (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sugar-pack authored Oct 26, 2022
1 parent cf44084 commit 62922ef
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions .github/workflows/release-post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
context: .
push: true
tags: ${{ steps.prepare-docker-image-tag.outputs.tags }}
build_args: VERSION=${{ steps.tag.outputs.tag }}
build-args: VERSION=${{ steps.tag.outputs.tag }}

- name: Login to Quay registry
uses: docker/login-action@v2
Expand All @@ -96,37 +96,35 @@ jobs:
context: .
push: true
tags: ${{ steps.prepare-quay-image-tag.outputs.tags }}
build_args: VERSION=${{ steps.tag.outputs.tag }}
build-args: VERSION=${{ steps.tag.outputs.tag }}

- name: Now Prepare RedHadConnect image
uses: ./.github/actions/gen-install-scripts
with:
IMAGE_URL: ${{ env.REDHAT_RELEASE_REGISTRY }}/${{ env.REDHAT_OPERATOR_REPO }}:${{ env.VERSION }}
VERSION: ${{ env.VERSION }}
ENV: prod


- name: Login to RedHat registry
uses: docker/login-action@v2
with:
registry: ${{ env.REDHAT_SCAN_RELEASE_REGISTRY }}
username: unused
password: ${{ secrets.REDHAT_REGISTRY_PASSWORD }}
- name: Prepare docker Quay image tag
id: prepare-redhat-image-tag
run: |
REPOSITORY=${{ env.REDHAT_SCAN_OPERATOR_REPO }}
TAG=${{ steps.tag.outputs.version }}
TAGS="${REPOSITORY}:${TAG}"
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Push Atlas Operator to RedHat Connect
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.prepare-redhat-image-tag.outputs.tags }}
labels: version=${{ steps.tag.outputs.version }}
build_args: VERSION=${{ steps.tag.outputs.tag }}
# - name: Now Prepare RedHadConnect image
# uses: ./.github/actions/gen-install-scripts
# with:
# IMAGE_URL: ${{ env.REDHAT_RELEASE_REGISTRY }}/${{ env.REDHAT_OPERATOR_REPO }}:${{ env.VERSION }}
# VERSION: ${{ env.VERSION }}
# ENV: prod
# - name: Login to RedHat registry
# uses: docker/login-action@v2
# with:
# registry: ${{ env.REDHAT_SCAN_RELEASE_REGISTRY }}
# username: unused
# password: ${{ secrets.REDHAT_REGISTRY_PASSWORD }}
# - name: Prepare docker RedHat image tag
# id: prepare-redhat-image-tag
# run: |
# REPOSITORY=${{ env.REDHAT_SCAN_OPERATOR_REPO }}
# TAG=${{ steps.tag.outputs.version }}
# TAGS="${REPOSITORY}:${TAG}"
# echo "tags=$TAGS" >> $GITHUB_OUTPUT
# - name: Push Atlas Operator to RedHat Connect
# uses: docker/build-push-action@v3
# with:
# context: .
# push: true
# tags: ${{ steps.prepare-redhat-image-tag.outputs.tags }}
# labels: version=${{ steps.tag.outputs.version }}
# build_args: VERSION=${{ steps.tag.outputs.tag }}

- name: Create Release
id: create_release
Expand Down

0 comments on commit 62922ef

Please sign in to comment.