1 Commits

Author SHA1 Message Date
0792a272a8 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
2025-12-07 14:47:01 -06:00

View File

@@ -19,10 +19,7 @@ jobs:
- name: Check for changes before building - name: Check for changes before building
id: image-changes id: image-changes
run: | run: |
echo "gitea test: ${GITEA_HEAD_REF:-${GITEA_REF#refs/heads/}}"
echo "github test: ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT
echo "default_branch_name=${{ gitea.event.repository.default_branch }}" >> $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
@@ -33,32 +30,32 @@ jobs:
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
# - -
# name: Log in to Github Container Registry name: Log in to Github Container Registry
# if: steps.image-changes.outputs.changes_detected == 'true' if: steps.image-changes.outputs.changes_detected == 'true'
# uses: docker/login-action@v3 uses: docker/login-action@v3
# with: with:
# registry: git.epenguin.net registry: git.epenguin.net
# username: ${{ vars.CI_BOT_USERNAME }} username: ${{ vars.CI_BOT_USERNAME }}
# password: ${{ secrets.CI_BOT_TOKEN }} password: ${{ secrets.CI_BOT_TOKEN }}
# - -
# name: Build and push name: Build and push
# if: steps.image-changes.outputs.changes_detected == 'true' if: steps.image-changes.outputs.changes_detected == 'true'
# uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
# with: with:
# push: true push: true
# tags: git.epenguin.net/${{ gitea.repository }}:latest tags: git.epenguin.net/${{ gitea.repository }}:latest
# context: "{{defaultContext}}:.docker" context: "{{defaultContext}}:.docker"
# build: build:
# runs-on: brutalisk runs-on: brutalisk
# container: container:
# image: git.epenguin.net/gentoo-utils/gentoo-utils-gitea:latest image: git.epenguin.net/gentoo-utils/gentoo-utils-gitea:latest
# needs: build-oci-image needs: build-oci-image
# steps: steps:
# - name: Checkout repo - name: Checkout repo
# uses: actions/checkout@v5 uses: actions/checkout@v5
# - name: build and check - name: build and check
# run: ./check.sh run: ./check.sh