Skip to content

Commit

Permalink
Fix SBO base image conflict with local registry in GH Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Macík <pavel.macik@gmail.com>
  • Loading branch information
pmacik committed Jun 8, 2021
1 parent 44745d1 commit a401c96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup-podman/registries_template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ unqualified-search-registries = ['docker.io']
prefix = "REGISTRY_PREFIX"
insecure = true
location = "localhost:5000"

[[registry.mirror]]
location = "REGISTRY_PREFIX"
19 changes: 6 additions & 13 deletions .github/workflows/merge-to-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@ jobs:
python-version: "3.7"
architecture: "x64"

- name: Set up CLI
run: |
curl -Lo operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/v${SDK_VERSION}/operator-sdk_linux_amd64
chmod +x operator-sdk
mv -v operator-sdk $GITHUB_WORKSPACE/bin/
curl -Lo opm https://github.com/operator-framework/operator-registry/releases/download/v${OPM_VERSION}/linux-amd64-opm
chmod +x opm
mv -v opm $GITHUB_WORKSPACE/bin/
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/linux/amd64/kubectl
chmod +x kubectl
mv -v kubectl $GITHUB_WORKSPACE/bin/
- name: Setup CLI
uses: ./.github/actions/setup-cli
with:
operator-sdk: true
opm: true
kubectl: true

- name: Release operator on Quay.io
env:
Expand Down

0 comments on commit a401c96

Please sign in to comment.