[CI] fix woodpecker: more robust commit sha retrieval #2

Merged
morbalint merged 6 commits from woodpecker-try-2 into main 2026-08-21 20:29:13 +00:00
Showing only changes of commit 1697ef1492 - Show all commits
+10 -1
View File
@@ -2,6 +2,13 @@ when:
- event: [push, manual, pull_request] - event: [push, manual, pull_request]
branch: [main] branch: [main]
services:
docker:
image: docker:28-dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: ""
steps: steps:
prepare-fe-image-tags: prepare-fe-image-tags:
image: alpine:3.21 image: alpine:3.21
@@ -61,6 +68,8 @@ steps:
- build-and-push-fe-image - build-and-push-fe-image
- build-and-push-e2e-image - build-and-push-e2e-image
environment: environment:
DOCKER_HOST: tcp://localhost:2375
DOCKER_TLS_CERTDIR: ""
GITEA_PACKAGES_USERNAME: GITEA_PACKAGES_USERNAME:
from_secret: gitea_packages_username from_secret: gitea_packages_username
GITEA_PACKAGES_TOKEN: GITEA_PACKAGES_TOKEN:
@@ -74,4 +83,4 @@ steps:
docker login git.cluster.lab.kemkas.hu -u "$GITEA_PACKAGES_USERNAME" -p "$GITEA_PACKAGES_TOKEN" docker login git.cluster.lab.kemkas.hu -u "$GITEA_PACKAGES_USERNAME" -p "$GITEA_PACKAGES_TOKEN"
trap 'docker compose -f e2e.docker-compose.yaml down -v --remove-orphans' EXIT trap 'docker compose -f e2e.docker-compose.yaml down -v --remove-orphans' EXIT
docker compose -f e2e.docker-compose.yaml pull docker compose -f e2e.docker-compose.yaml pull
docker compose -f e2e.docker-compose.yaml up --no-build --abort-on-container-exit --exit-code-from e2e e2e docker compose -f e2e.docker-compose.yaml up --no-build --abort-on-container-exit --exit-code-from e2e e2e