Skip to content

Commit 7dd151e

Browse files
Fixed release process (#846)
Fixed release process
1 parent 6fe2ff0 commit 7dd151e

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/actions/build-push-image/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ runs:
9595
cache-to: type=gha,mode=max
9696
push: true
9797
- name: Login to quay.io registry
98-
if: ${{ inputs.push_to_quay == true }}
98+
if: ${{ inputs.push_to_quay == 'true' }}
9999
uses: docker/login-action@v2
100100
with:
101101
registry: quay.io
102102
username: ${{ inputs.quay_username }}
103103
password: ${{ inputs.quay_password }}
104104
- name: Build and Push Operator to Docker Registry
105-
if: ${{ inputs.push_to_quay == true }}
105+
if: ${{ inputs.push_to_quay == 'true' }}
106106
uses: docker/build-push-action@v3
107107
with:
108108
context: .
@@ -112,4 +112,4 @@ runs:
112112
tags: quay.io/${{ inputs.repository }}:${{ inputs.version }}
113113
cache-from: type=gha
114114
cache-to: type=gha,mode=max
115-
push: true
115+
push: true

.github/actions/certify-openshift-images/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM alpine:latest
22

33
RUN apk update && \
4-
apk add --no-cache curl jq
4+
apk add --no-cache curl jq
55

66
RUN curl -LO https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.4.3/preflight-linux-amd64 && \
7-
chmod +x ./preflight-linux-amd64 && \
8-
sudo mv ./preflight-linux-amd64 /usr/local/bin/preflight
7+
chmod +x ./preflight-linux-amd64 && \
8+
mv ./preflight-linux-amd64 /usr/local/bin/preflight
99

1010
COPY entrypoint.sh /home/entrypoint.sh
1111
RUN chmod +x /home/entrypoint.sh

.github/workflows/release-post-merge.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ jobs:
5454
uses: ./.github/actions/build-push-image
5555
with:
5656
repository: ${{ env.IMAGE_REPOSITORY }}
57-
version: ${{ steps.tag.outputs.tag }}
57+
version: ${{ steps.tag.outputs.version}}
5858
platforms: linux/amd64,linux/arm64
5959
docker_username: ${{ secrets.DOCKER_USERNAME }}
6060
docker_password: ${{ secrets.DOCKER_PASSWORD }}
6161
push_to_quay: true
6262
quay_username: mongodb+mongodb_atlas_kubernetes
6363
quay_password: ${{ secrets.QUAY_PASSWORD }}
64-
#- name: Certify Openshift images
65-
#uses: ./.github/actions/certify-openshift-images
66-
#with:
67-
#repository: ${{ env.IMAGE_REPOSITORY }}
68-
#version: ${{ steps.tag.outputs.tag }}
69-
#quay_password: ${{ secrets.QUAY_PASSWORD }}
70-
#rhcc_token: ${{ secrets.RH_CERTIFICATION_PYXIS_API_TOKEN }}
71-
#rhcc_project: ${{ secrets.RH_CERTIFICATION_OSPID }}
64+
- name: Certify Openshift images
65+
uses: ./.github/actions/certify-openshift-images
66+
with:
67+
repository: ${{ env.IMAGE_REPOSITORY }}
68+
version: ${{ steps.tag.outputs.version}}
69+
quay_password: ${{ secrets.QUAY_PASSWORD }}
70+
rhcc_token: ${{ secrets.RH_CERTIFICATION_PYXIS_API_TOKEN }}
71+
rhcc_project: ${{ secrets.RH_CERTIFICATION_OSPID }}
7272
- name: Create configuration package
7373
run: |
7474
set -x

0 commit comments

Comments
 (0)