Skip to content

Commit

Permalink
fix logout
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Mar 5, 2024
1 parent c85674e commit 5891292
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,7 @@ ci-unified:
if [ "$SET_LATEST_TAG" == "true" ]; then
$BUILDAH_COMMAND push --format=v2s2 "$GCP_REGISTRY_PATH/$IMAGE_NAME:latest"
fi
- buildah logout "${GCP_REGISTRY_PATH}"
- buildah logout "${GCP_REGISTRY_NAME}"
- docker logout "${GCP_REGISTRY_NAME}"
- echo "Pushing to $GCP_REGISTRY_NAME for CI"
- echo "$GCP_REGISTRY_KEY_CI" |
buildah login -u _json_key_base64 --password-stdin https://${GCP_REGISTRY_PATH_CI}
Expand All @@ -508,7 +506,7 @@ ci-unified:
if [ "$SET_LATEST_TAG" == "true" ]; then
$BUILDAH_COMMAND push --format=v2s2 "$GCP_REGISTRY_PATH_CI/$IMAGE_NAME:latest"
fi
- buildah logout "${GCP_REGISTRY_PATH_CI}"
- buildah logout "${GCP_REGISTRY_NAME}"
retry:
max: 2
when:
Expand Down

0 comments on commit 5891292

Please sign in to comment.