From dc08ad96ee9a9e3224d911a55c1f461a69bbc92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Pazos?= Date: Mon, 30 Sep 2024 12:49:28 -0300 Subject: [PATCH] test docker login, but don't push --- .github/workflows/ci.yaml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0d831587..27acc102 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -98,18 +98,15 @@ jobs: package_cloud push $repo/el/7 build/centos-7/carbon-relay-ng-*.el7.*.rpm - name: Load Docker image run: docker load -i build/carbon-relay-ng.tar - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Push Docker image - run: | - version=$(cat build/version.txt) - docker push grafana/carbon-relay-ng:$version - tag=latest - [[ "$version" == *-* ]] && tag=master - docker push grafana/carbon-relay-ng:$tag + - name: Login to DockerHub + uses: grafana/shared-workflows/actions/dockerhub-login@main + # - name: Push Docker image + # run: | + # version=$(cat build/version.txt) + # docker push grafana/carbon-relay-ng:$version + # tag=latest + # [[ "$version" == *-* ]] && tag=master + # docker push grafana/carbon-relay-ng:$tag github_binaries: if: github.ref_type == 'tag'