9 Commits

Author SHA1 Message Date
34662a99cd infra: image: switch to using ${{ vars.REGISTRY_URL }}
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 5m9s
Gentoo Utils / build (push) Successful in 1m33s
Doing this so I can change this site wide in the future without anything breaking
2025-12-08 20:47:12 -06:00
d2ce6bc8ff infra: image: fixes image_tag 2025-12-08 20:47:12 -06:00
91dcd3b3fb infra: image: fix image tag for build job 2025-12-08 20:47:12 -06:00
e9386ad64a infra: image: build image for branches if they dont exist 2025-12-08 20:47:12 -06:00
c288787d91 infra: image: fixes c35db0f 2025-12-08 20:47:12 -06:00
df10b0fac0 infra: image: protect :latest tag so only the default branch can push to it
infra: image: fix hard coded image name
2025-12-08 20:47:12 -06:00
407b836c77 infra: image: create entrypoint script and put env sources in it 2025-12-08 20:47:12 -06:00
2c8a6c3783 infra: simplify pipeline logic 2025-12-08 20:47:10 -06:00
e06415fb7b run CI when pushing to any branch
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 8s
Gentoo Utils / build (push) Successful in 31s
2025-12-08 22:24:12 +00:00

View File

@@ -32,7 +32,7 @@ jobs:
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
build_image=true
else
if ! docker manifest inspect git.epenguin.net/${{ gitea.repository }}:${image_tag} >/dev/null 2>&1; then
if ! docker manifest inspect ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${image_tag} >/dev/null 2>&1; then
build_image=true
else
build_image=false
@@ -49,7 +49,7 @@ jobs:
if: steps.image-changes.outputs.build_image == 'true'
uses: docker/login-action@v3
with:
registry: git.epenguin.net
registry: ${{ vars.REGISTRY_URL }}
username: ${{ vars.CI_BOT_USERNAME }}
password: ${{ secrets.CI_BOT_TOKEN }}
@@ -58,7 +58,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: git.epenguin.net/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
tags: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
context: "{{defaultContext}}:.docker"
outputs:
image_tag: ${{ steps.image-changes.outputs.image_tag }}
@@ -67,7 +67,7 @@ jobs:
runs-on: brutalisk
needs: build-oci-image
container:
image: git.epenguin.net/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps:
- name: Checkout repo
uses: actions/checkout@v5