We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d61709 commit e564caaCopy full SHA for e564caa
.github/workflows/docker.yml
@@ -41,6 +41,18 @@ jobs:
41
- name: Set up Docker Buildx
42
uses: docker/setup-buildx-action@v3
43
44
+ - name: Validate Docker Hub secrets
45
+ run: |
46
+ echo "username length: ${#DOCKERHUB_USERNAME}"
47
+ echo "token length: ${#DOCKERHUB_TOKEN}"
48
+ if [ -z "$DOCKERHUB_USERNAME" ] || [ -z "$DOCKERHUB_TOKEN" ]; then
49
+ echo "Missing Docker credentials"
50
+ exit 1
51
+ fi
52
+ env:
53
+ DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
54
+ DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
55
+
56
- name: Log in to Docker Hub
57
uses: docker/login-action@v3
58
with:
0 commit comments