Skip to content

Commit

Permalink
Migrate from Docker Hub to ICR.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottexton committed Mar 22, 2023
1 parent c52fffc commit dffac7b
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,12 @@ jobs:
mv operator-sdk_${OS}_${ARCH} ${HOME}/.local/bin/operator-sdk
# Perform a docker login to IBM Cloud Container Registry (icr.io)
- name: Login to ICR
env:
API_KEY: ${{ secrets.ICR_API_KEY }}
run: |
echo "Installing the IBM Cloud command line...."
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud -v
ibmcloud plugin install container-registry
echo "Authenticating to IBM Cloud..."
ibmcloud config --check-version=false
ibmcloud login --apikey ${API_KEY} \
-a https://cloud.ibm.com -r us-south
ibmcloud cr login --client docker
ibmcloud cr region-set global
- name: Login to IBM Cloud Container Registry
uses: docker/login-action@v2
with:
registry: icr.io
username: iamapikey
password: ${{ secrets.ICR_API_KEY }}

# Perform the build.
- name: Perform the build.
Expand Down

0 comments on commit dffac7b

Please sign in to comment.