infra: switch to using generic tag name and manually selecting image
Some checks failed
Gentoo Utils / build-oci-image (pull_request) Successful in 8s
Gentoo Utils / build (pull_request) Failing after 26s

This commit is contained in:
2025-12-07 14:00:45 -06:00
parent fc32bac63c
commit 0792a272a8

View File

@@ -7,12 +7,11 @@ on:
branches: [master] branches: [master]
jobs: jobs:
build-docker: build-oci-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true continue-on-error: true
steps: steps:
- - name: Checkout repo
name: Checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -20,13 +19,14 @@ jobs:
- name: Check for changes before building - name: Check for changes before building
id: image-changes id: image-changes
run: | run: |
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
echo changes_detected=true >> $GITEA_OUTPUT echo changes_detected=true >> $GITEA_OUTPUT
else else
echo changes_detected=false >> $GITEA_OUTPUT echo changes_detected=false >> $GITEA_OUTPUT
fi fi
- cat $GITEA_OUTPUT
name: Set up Docker buildx - name: Set up Docker buildx
if: steps.image-changes.outputs.changes_detected == 'true' if: steps.image-changes.outputs.changes_detected == 'true'
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -49,8 +49,10 @@ jobs:
context: "{{defaultContext}}:.docker" context: "{{defaultContext}}:.docker"
build: build:
runs-on: gentoo-utils runs-on: brutalisk
needs: build-docker container:
image: git.epenguin.net/gentoo-utils/gentoo-utils-gitea:latest
needs: build-oci-image
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v5