mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
gha: publish-kata-deploy-payload: Improve registry login
Let's only try to login to the registry that's being passed as an input argument. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
41026f003e
commit
13929fc610
1
.github/workflows/ci-on-push.yaml
vendored
1
.github/workflows/ci-on-push.yaml
vendored
@ -23,7 +23,6 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
||||||
tag: ${{ github.event.workflow_run.head_sha }}-amd64
|
tag: ${{ github.event.workflow_run.head_sha }}-amd64
|
||||||
quay-io-login-continue-on-error: true
|
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
run-k8s-tests-on-aks:
|
run-k8s-tests-on-aks:
|
||||||
|
@ -18,10 +18,6 @@ on:
|
|||||||
tag:
|
tag:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
quay-io-login-continue-on-error:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
kata-payload:
|
kata-payload:
|
||||||
@ -37,14 +33,15 @@ jobs:
|
|||||||
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
|
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
|
||||||
|
|
||||||
- name: Login to Kata Containers quay.io
|
- name: Login to Kata Containers quay.io
|
||||||
|
if: ${{ inputs.registry == 'quay.io' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
|
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
|
||||||
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
||||||
continue-on-error: ${{ inputs.quay-io-login-continue-on-error }}
|
|
||||||
|
|
||||||
- name: Login to Kata Containers ghcr.io
|
- name: Login to Kata Containers ghcr.io
|
||||||
|
if: ${{ inputs.registry == 'ghcr.io' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
@ -18,10 +18,6 @@ on:
|
|||||||
tag:
|
tag:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
quay-io-login-continue-on-error:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
kata-payload:
|
kata-payload:
|
||||||
@ -41,14 +37,15 @@ jobs:
|
|||||||
name: kata-static-tarball-arm64${{ inputs.tarball-suffix }}
|
name: kata-static-tarball-arm64${{ inputs.tarball-suffix }}
|
||||||
|
|
||||||
- name: Login to Kata Containers quay.io
|
- name: Login to Kata Containers quay.io
|
||||||
|
if: ${{ inputs.registry == 'quay.io' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
|
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
|
||||||
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
||||||
continue-on-error: ${{ inputs.quay-io-login-continue-on-error }}
|
|
||||||
|
|
||||||
- name: Login to Kata Containers ghcr.io
|
- name: Login to Kata Containers ghcr.io
|
||||||
|
if: ${{ inputs.registry == 'ghcr.io' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
@ -18,10 +18,6 @@ on:
|
|||||||
tag:
|
tag:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
quay-io-login-continue-on-error:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
kata-payload:
|
kata-payload:
|
||||||
@ -41,14 +37,15 @@ jobs:
|
|||||||
name: kata-static-tarball-s390x${{ inputs.tarball-suffix }}
|
name: kata-static-tarball-s390x${{ inputs.tarball-suffix }}
|
||||||
|
|
||||||
- name: Login to Kata Containers quay.io
|
- name: Login to Kata Containers quay.io
|
||||||
|
if: ${{ inputs.registry == 'quay.io' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
|
username: ${{ secrets.QUAY_DEPLOYER_USERNAME }}
|
||||||
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
password: ${{ secrets.QUAY_DEPLOYER_PASSWORD }}
|
||||||
continue-on-error: ${{ inputs.quay-io-login-continue-on-error }}
|
|
||||||
|
|
||||||
- name: Login to Kata Containers ghcr.io
|
- name: Login to Kata Containers ghcr.io
|
||||||
|
if: ${{ inputs.registry == 'ghcr.io' }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
Loading…
Reference in New Issue
Block a user