Skip to content

Commit

Permalink
Fetch crc binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Ivantsov committed Jan 29, 2024
1 parent e55be9d commit 481200c
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@ jobs:
with:
fetch-depth: 0

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@master
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
role-session-name: DCTerraformHelmSession
role-duration-seconds: 7200

- name: Fetch OpenShift binary
run: |
aws s3api get-object --bucket openshift-local --key crc crc
wget https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.31.0/crc-linux-amd64.tar.xz
tar -xvf crc-linux-amd64.tar.xz
cp crc-linux-2.31.0-amd64/crc crc
chmod +x crc
Expand All @@ -54,13 +49,11 @@ jobs:
- name: Set the crc config
run: |
mkdir -p ~/.crc/cache
echo "${{ secrets.OPENSHIFT_PULL_SECRET }}" > pull-secret.txt
cat pull-secret.txt
./crc config set consent-telemetry no
./crc config set preset okd
./crc config set network-mode user
- name: Setup the crc
run: sudo -su $USER ./crc setup
- name: Start the crc
run: sudo -su $USER ./crc start -p pull-secret.txt
run: sudo -su $USER ./crc start

0 comments on commit 481200c

Please sign in to comment.