File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11services :
22 {{project-name}}:
3- image : " bakerlinklab /bakerlink-env:latest"
3+ image : " ghcr.io/baker-link-lab /bakerlink-env:latest"
44 container_name : " {{project-name}}-container"
55 volumes :
66 - " ../:/{{project-name}}"
Original file line number Diff line number Diff line change 88 workflow_dispatch :
99
1010env :
11- DOCKER_IMAGE : bakerlinklab/bakerlink-env
11+ REGISTRY : ghcr.io
12+ DOCKER_IMAGE : ghcr.io/baker-link-lab/bakerlink-env
1213
1314jobs :
1415 build-and-push :
1516 runs-on : ubuntu-latest
1617 permissions :
1718 contents : read
19+ packages : write
1820 steps :
1921 - name : Checkout
2022 uses : actions/checkout@v4
2123
2224 - name : Set up Docker Buildx
2325 uses : docker/setup-buildx-action@v3
2426
25- - name : Login to Docker Hub
26- # Requires repository secrets: DOCKERHUB_USERNAME and DOCKERHUB_TOKEN
27+ - name : Login to GitHub Container Registry
2728 uses : docker/login-action@v3
2829 with :
29- username : ${{ secrets.DOCKERHUB_USERNAME }}
30- password : ${{ secrets.DOCKERHUB_TOKEN }}
30+ registry : ${{ env.REGISTRY }}
31+ username : ${{ github.actor }}
32+ password : ${{ secrets.GITHUB_TOKEN }}
3133
3234 - name : Build and push
3335 uses : docker/build-push-action@v6
You can’t perform that action at this time.
0 commit comments