Skip to content

Commit 774f8e8

Browse files
committed
Test with envs and secrets
1 parent 7ef466a commit 774f8e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
id: meta
1212
uses: docker/metadata-action@v5
1313
with:
14-
images: ${{ env.DOCKERHUB_USERNAME }}/openrepo
14+
images: ${{ vars.DOCKERHUB_USERNAME }}/openrepo
1515
tags: |
1616
type=schedule
1717
type=ref,event=branch
@@ -29,13 +29,13 @@ jobs:
2929
-
3030
name: Print environment variables
3131
run: |
32-
echo "DOCKERHUB_USERNAME=${{ env.DOCKERHUB_USERNAME }}"
32+
echo "DOCKERHUB_USERNAME=${{ vars.DOCKERHUB_USERNAME }}"
3333
echo "DOCKERHUB_TOKEN=${{ secrets.DOCKERHUB_TOKEN }}"
3434
-
3535
name: Login to Docker Hub
3636
uses: docker/login-action@v3
3737
with:
38-
username: ${{ env.DOCKERHUB_USERNAME }}
38+
username: ${{ vars.DOCKERHUB_USERNAME }}
3939
password: ${{ secrets.DOCKERHUB_TOKEN }}
4040
-
4141
name: Build and push

0 commit comments

Comments
 (0)