@@ -3,8 +3,9 @@ name: Deploy
33on :
44 push :
55 branches : [main]
6- schedule :
7- - cron : " 0 00,12 * * *" # Twice a day
6+ workflow_dispatch : {}
7+ # schedule:
8+ # - cron: "0 00,12 * * *" # Twice a day
89
910jobs :
1011 generate-matrix :
@@ -27,12 +28,17 @@ jobs:
2728 id : set-matrix
2829
2930 deploy :
31+
3032 name : ${{ matrix.key }}
3133 runs-on : ubuntu-latest
3234 if : needs.generate-matrix.outputs.matrix != ''
3335 needs : [generate-matrix]
3436 strategy :
3537 matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
38+ permissions :
39+ contents : read
40+ packages : write
41+ security-events : write
3642 steps :
3743 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
3844 - uses : astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6
@@ -44,11 +50,12 @@ jobs:
4450 uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
4551 - name : Set up Docker Buildx
4652 uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
47- - name : Login to Docker Hub
48- uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
53+ - name : Login to GHCR
54+ uses : docker/login-action@v3
4955 with :
50- username : ${{ secrets.DOCKERHUB_USERNAME }}
51- password : ${{ secrets.DOCKERHUB_TOKEN }}
56+ registry : ghcr.io
57+ username : ${{ github.repository_owner }}
58+ password : ${{ secrets.GITHUB_TOKEN }}
5259 - name : Build image
5360 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
5461 with :
8289 uv run dpn --verbose release
8390 clean_checkout=$(git status --porcelain)
8491 if [[ -n "${clean_checkout}" ]]; then
85- git config --global user.name "Nikolai Kristiansen " > /dev/null 2>&1
86- git config --global user.email nikolaik @users.noreply.github.com > /dev/null 2>&1
92+ git config --global user.name "Ray Myers " > /dev/null 2>&1
93+ git config --global user.email raymyers @users.noreply.github.com > /dev/null 2>&1
8794
8895 # Update README.md
8996 today=$(date +%Y-%m-%d)
0 commit comments