@@ -22,18 +22,18 @@ jobs:
22
22
- name : Login to Docker Hub
23
23
uses : docker/login-action@v3
24
24
with :
25
- username : ${{ secrets .DOCKERHUB_USERNAME }}
25
+ username : ${{ vars .DOCKERHUB_USERNAME }}
26
26
password : ${{ secrets.DOCKERHUB_TOKEN }}
27
27
28
28
- name : Determine Image Tags
29
29
id : tags
30
30
run : |
31
31
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
32
- echo "tags=${{ secrets .DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }},${{ secrets .DOCKERHUB_USERNAME }}/maimbot:latest" >> $GITHUB_OUTPUT
32
+ echo "tags=${{ vars .DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }},${{ vars .DOCKERHUB_USERNAME }}/maimbot:latest" >> $GITHUB_OUTPUT
33
33
elif [ "${{ github.ref }}" == "refs/heads/main" ]; then
34
- echo "tags=${{ secrets .DOCKERHUB_USERNAME }}/maimbot:main,${{ secrets .DOCKERHUB_USERNAME }}/maimbot:latest" >> $GITHUB_OUTPUT
34
+ echo "tags=${{ vars .DOCKERHUB_USERNAME }}/maimbot:main,${{ vars .DOCKERHUB_USERNAME }}/maimbot:latest" >> $GITHUB_OUTPUT
35
35
elif [ "${{ github.ref }}" == "refs/heads/main-fix" ]; then
36
- echo "tags=${{ secrets .DOCKERHUB_USERNAME }}/maimbot:main-fix" >> $GITHUB_OUTPUT
36
+ echo "tags=${{ vars .DOCKERHUB_USERNAME }}/maimbot:main-fix" >> $GITHUB_OUTPUT
37
37
fi
38
38
39
39
- name : Build and Push Docker Image
44
44
platforms : linux/amd64,linux/arm64
45
45
tags : ${{ steps.tags.outputs.tags }}
46
46
push : true
47
- cache-from : type=registry,ref=${{ secrets .DOCKERHUB_USERNAME }}/maimbot:buildcache
48
- cache-to : type=registry,ref=${{ secrets .DOCKERHUB_USERNAME }}/maimbot:buildcache,mode=max
47
+ cache-from : type=registry,ref=${{ vars .DOCKERHUB_USERNAME }}/maimbot:buildcache
48
+ cache-to : type=registry,ref=${{ vars .DOCKERHUB_USERNAME }}/maimbot:buildcache,mode=max
0 commit comments