Skip to content

Commit

Permalink
test docker login, but don't push
Browse files Browse the repository at this point in the history
  • Loading branch information
npazosmendez committed Sep 30, 2024
1 parent eb04853 commit dc08ad9
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit dc08ad9

Please sign in to comment.