7 Commits

Author SHA1 Message Date
3e660f4343 infra: image: fixes image_tag
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 5m12s
Gentoo Utils / build (push) Successful in 1m29s
2025-12-08 20:38:27 -06:00
d8521777aa infra: image: fix image tag for build job 2025-12-08 20:38:27 -06:00
ae971ff229 infra: image: build image for branches if they dont exist 2025-12-08 20:38:27 -06:00
c77c013621 infra: image: fixes c35db0f 2025-12-08 20:38:27 -06:00
64df2001f2 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:38:27 -06:00
d2bde09f59 infra: image: create entrypoint script and put env sources in it 2025-12-08 20:38:23 -06:00
35b4a15578 infra: simplify pipeline logic 2025-12-08 17:18:13 -06: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 ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${image_tag} >/dev/null 2>&1; then
if ! docker manifest inspect git.epenguin.net/${{ 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: ${{ vars.REGISTRY_URL }}
registry: git.epenguin.net
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: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
tags: git.epenguin.net/${{ 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: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
image: git.epenguin.net/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps:
- name: Checkout repo
uses: actions/checkout@v5