From 7dcfc2d4cc74fa0c1bb41532b558107d8491d009 Mon Sep 17 00:00:00 2001 From: Jesse Y Lin Date: Mon, 24 Jul 2023 15:29:52 +0200 Subject: [PATCH] ci: fix to use login-action --- .github/workflows/build-images.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 269cc17..527aa03 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -49,7 +49,11 @@ jobs: type=semver,pattern={{version}} - name: Login to Gitlab registry if: github.event_name != 'pull_request' - run: docker login -u ${{ secrets.GITLAB_REGISTRY_USERNAME }} -p ${{ secrets.GITLAB_REGISTRY_PASSWORD }} registry.gitlab.inria.fr/cromac/automateddiscoverytool + uses: docker/login-action@v3 + with: + registry: registry.gitlab.inria.fr/cromac/automateddiscoverytool + username: ${{ secrets.GITLAB_REGISTRY_USERNAME }} + password: ${{ secrets.GITLAB_REGISTRY_PASSWORD }} - name: Build and push uses: docker/build-push-action@v4 with: