From dc5e6f30a9ce2c076994da1f7b6ae9b283f3caaf Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Fri, 21 Apr 2023 11:05:08 +0200 Subject: [PATCH] ci: login to container registry before pushing containers (#1676) --- .github/actions/e2e_test/action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/e2e_test/action.yml b/.github/actions/e2e_test/action.yml index b14f4e613..45ccacf13 100644 --- a/.github/actions/e2e_test/action.yml +++ b/.github/actions/e2e_test/action.yml @@ -113,6 +113,13 @@ runs: useCache: "true" 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 if: inputs.cliVersion == '' uses: ./.github/actions/build_cli @@ -172,13 +179,6 @@ runs: # extend token expiry to 6 hours to ensure constellation can terminate 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) if: inputs.cloudProvider == 'azure' uses: ./.github/actions/login_azure