ci: login to container registry before pushing containers (#1676)

This commit is contained in:
Malte Poll 2023-04-21 11:05:08 +02:00 committed by GitHub
parent 1ebc553365
commit dc5e6f30a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,13 @@ runs:
useCache: "true" useCache: "true"
buildBuddyApiKey: ${{ inputs.buildBuddyApiKey }} buildBuddyApiKey: ${{ inputs.buildBuddyApiKey }}
- name: Log in to the Container registry
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # tag=v2.1.0
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ inputs.githubToken }}
- name: Build CLI - name: Build CLI
if: inputs.cliVersion == '' if: inputs.cliVersion == ''
uses: ./.github/actions/build_cli uses: ./.github/actions/build_cli
@ -172,13 +179,6 @@ runs:
# extend token expiry to 6 hours to ensure constellation can terminate # extend token expiry to 6 hours to ensure constellation can terminate
role-duration-seconds: 21600 role-duration-seconds: 21600
- name: Log in to the Container registry
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # tag=v2.1.0
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ inputs.githubToken }}
- name: Login to Azure (IAM service principal) - name: Login to Azure (IAM service principal)
if: inputs.cloudProvider == 'azure' if: inputs.cloudProvider == 'azure'
uses: ./.github/actions/login_azure uses: ./.github/actions/login_azure