Skip to content

Commit

Permalink
fix/ci: login to quay.io
Browse files Browse the repository at this point in the history
  • Loading branch information
mtulio committed Jul 2, 2024
1 parent c629ca2 commit 8464b9e
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
tags:
- 'v*.*.*'

env:
REGISTRY_USER: opct+github_opct_plugins
REGISTRY_ADDR: quay.io

jobs:
linters:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,32 +37,42 @@ jobs:
build-container:
name: release container(devel)
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' }}
runs-on: ubuntu-24.04
runs-on: ubuntu-22.04
needs: [linters]
env:
VERSION: "v0.0.0-devel-pr.${{ github.event.pull_request.number }}"
TOOLS_REPO: localhost/tools
PLUGIN_TESTS_REPO: localhost/plugin-openshift-tests
MGM_REPO: localhost/must-gather-monitoring

environment: production
#environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

# # https://github.com/marketplace/actions/podman-login
- name: Log in to Quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.PROD_QUAY_USER }}
password: ${{ env.PROD_QUAY_PASS }}
registry: quay.io
username: ${{ env.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASS }}
registry: ${{ env.REGISTRY_ADDR }}

# # https://github.com/marketplace/actions/podman-login
# - name: Log in to Quay.io
# uses: redhat-actions/podman-login@v1
# with:
# username: ${{ env.PROD_QUAY_USER }}
# password: ${{ env.PROD_QUAY_PASS }}
# registry: quay.io

- name: Build and publish container images
shell: bash
run: |
#echo "> Logging to Quay.io and user [${{ env.OPCT_USER }}]:"
##podman login -u="${{ env.OPCT_USER }}" -p="${{ env.OPCT_PASS }}" quay.io
echo "> Build and publish container image:"
bash ./hack/build-all.sh
Expand Down

0 comments on commit 8464b9e

Please sign in to comment.