File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8080 permissions :
8181 contents : read
8282 packages : write
83+ env :
84+ DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
85+ DOCKERHUB_TOKEN : ${{ secrets.DOCKERHUB_TOKEN }}
8386 steps :
8487 - name : Checkout
8588 uses : actions/checkout@v4
@@ -99,19 +102,19 @@ jobs:
99102 password : ${{ secrets.GITHUB_TOKEN }}
100103
101104 - name : Login to Docker Hub
102- if : github.event_name != 'pull_request' && secrets .DOCKERHUB_USERNAME != '' && secrets .DOCKERHUB_TOKEN != ''
105+ if : github.event_name != 'pull_request' && env .DOCKERHUB_USERNAME != '' && env .DOCKERHUB_TOKEN != ''
103106 uses : docker/login-action@v3
104107 with :
105- username : ${{ secrets .DOCKERHUB_USERNAME }}
106- password : ${{ secrets .DOCKERHUB_TOKEN }}
108+ username : ${{ env .DOCKERHUB_USERNAME }}
109+ password : ${{ env .DOCKERHUB_TOKEN }}
107110
108111 - name : Compute image list
109112 id : images
110113 run : |
111114 IMAGES="ghcr.io/${{ github.repository }}"
112- if [ -n "${{ secrets. DOCKERHUB_USERNAME }} " ] && [ -n "${{ secrets. DOCKERHUB_TOKEN }} " ]; then
115+ if [ -n "$DOCKERHUB_USERNAME" ] && [ -n "$DOCKERHUB_TOKEN" ]; then
113116 IMAGES="${IMAGES}
114- docker.io/${{ secrets. DOCKERHUB_USERNAME }} /domain-manager"
117+ docker.io/$DOCKERHUB_USERNAME/domain-manager"
115118 fi
116119 printf 'images<<EOF\n%s\nEOF\n' "$IMAGES" >> "$GITHUB_OUTPUT"
117120
You can’t perform that action at this time.
0 commit comments