File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 77 branches : [ "*" ]
88
99env :
10- REGISTRY : ghcr .io
11- IMAGE_NAME : ${{ github.repository }}
10+ REGISTRY : docker .io
11+ IMAGE_NAME : ${{ secrets.DOCKERHUB_USERNAME }}/docker-odoo
1212
1313jobs :
1414 build :
1515 runs-on : ubuntu-latest
1616 permissions :
1717 contents : read
18- packages : write
1918
2019 steps :
2120 - name : Checkout repository
2221 uses : actions/checkout@v4
2322
24- - name : Log in to Container Registry
23+ - name : Log in to Docker Hub
2524 if : github.event_name != 'pull_request'
2625 uses : docker/login-action@v3
2726 with :
28- registry : ${{ env.REGISTRY }}
29- username : ${{ github.actor }}
30- password : ${{ secrets.GITHUB_TOKEN }}
27+ username : ${{ secrets.DOCKERHUB_USERNAME }}
28+ password : ${{ secrets.DOCKERHUB_TOKEN }}
3129
3230 - name : Extract metadata
3331 id : meta
3432 uses : docker/metadata-action@v5
3533 with :
36- images : ${{ env.REGISTRY }}/${{ env. IMAGE_NAME }}
34+ images : ${{ env.IMAGE_NAME }}
3735 tags : |
3836 type=ref,event=branch
3937 type=ref,event=pr
5149 push : ${{ github.event_name != 'pull_request' }}
5250 tags : ${{ steps.meta.outputs.tags }}
5351 labels : ${{ steps.meta.outputs.labels }}
54- # Solo cache de GitHub Actions
5552 cache-from : type=gha
5653 cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments