Skip to content

Commit cfb1f40

Browse files
committed
use secret to allow pushing image
1 parent 3acd68b commit cfb1f40

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.depot/workflows/cicd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
docker:
5252
needs: [ci]
5353
runs-on: depot-ubuntu-24.04
54+
environment: ${{ github.ref == 'refs/heads/main' && 'image-registry' || '' }}
5455
permissions:
5556
contents: read
5657
packages: write
@@ -72,8 +73,8 @@ jobs:
7273
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
7374
with:
7475
registry: ghcr.io
75-
username: ${{ github.actor }}
76-
password: ${{ secrets.GITHUB_TOKEN }}
76+
username: beeequeue
77+
password: ${{ secrets.GH_REGISTRY_TOKEN }}
7778

7879
- name: Build and maybe Push Docker image
7980
uses: depot/build-push-action@98e78adca7817480b8185f474a400b451d74e287 # v1.18.0

0 commit comments

Comments
 (0)