1-
21name : Build PR
32
43on :
@@ -24,41 +23,41 @@ jobs:
2423 build_docker : ${{ steps.loadinfo.outputs.build_docker }}
2524 docker_tag : ${{ steps.loadinfo.outputs.docker_tag }}
2625 steps :
27- - name : " Load PR info"
28- id : loadinfo
29- run : |
30- has_docker_image_label="${{ contains(github.event.pull_request.labels.*.name, 'build-docker-image') }}"
31- run_builds="$has_docker_image_label"
32- echo "docker image label: $has_docker_image_label"
26+ - name : " Load PR info"
27+ id : loadinfo
28+ run : |
29+ has_docker_image_label="${{ contains(github.event.pull_request.labels.*.name, 'build-docker-image') }}"
30+ run_builds="$has_docker_image_label"
31+ echo "docker image label: $has_docker_image_label"
32+
33+ branch_name="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
34+ echo "branch name: $branch_name"
35+
36+ commit_repo="$GITHUB_REPOSITORY"
37+ commit_ref="${{ github.event.pull_request.head.sha }}"
38+ if [[ -z "$commit_ref" ]]; then
39+ commit_ref="${{ github.sha }}"
40+ fi
3341
34- branch_name="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} "
35- echo "branch name : $branch_name "
42+ echo "repository: $commit_repo "
43+ echo "commit : $commit_ref "
3644
37- commit_repo="$GITHUB_REPOSITORY"
38- commit_ref="${{ github.event.pull_request.head.sha }}"
39- if [[ -z "$commit_ref" ]]; then
40- commit_ref="${{ github.sha }}"
41- fi
42-
43- echo "repository: $commit_repo"
44- echo "commit: $commit_ref"
45-
46- manual_tag="${{ inputs.docker_tag }}"
47- if [[ ! -z "$manual_tag" ]]; then
48- has_docker_image_label="true"
49- branch_name="$manual_tag"
50- run_builds="true"
51- fi
45+ manual_tag="${{ inputs.docker_tag }}"
46+ if [[ ! -z "$manual_tag" ]]; then
47+ has_docker_image_label="true"
48+ branch_name="$manual_tag"
49+ run_builds="true"
50+ fi
5251
53- if [[ "$branch_name" == "master" ]] || [[ "$branch_name" =~ ^v[0-9] ]]; then
54- echo "Invalid branch name! Skipping builds"
55- run_builds="false"
56- fi
52+ if [[ "$branch_name" == "master" ]] || [[ "$branch_name" =~ ^v[0-9] ]]; then
53+ echo "Invalid branch name! Skipping builds"
54+ run_builds="false"
55+ fi
5756
58- echo "run_builds=$run_builds" >> $GITHUB_OUTPUT
59- echo "commit_ref=$commit_ref" >> $GITHUB_OUTPUT
60- echo "build_docker=$has_docker_image_label" >> $GITHUB_OUTPUT
61- echo "docker_tag=$branch_name" >> $GITHUB_OUTPUT
57+ echo "run_builds=$run_builds" >> $GITHUB_OUTPUT
58+ echo "commit_ref=$commit_ref" >> $GITHUB_OUTPUT
59+ echo "build_docker=$has_docker_image_label" >> $GITHUB_OUTPUT
60+ echo "docker_tag=$branch_name" >> $GITHUB_OUTPUT
6261
6362 check_source :
6463 name : " Run code checks"
7473 with :
7574 ref : ${{ needs.prinfo.outputs.commit_ref }}
7675 docker : ${{ needs.prinfo.outputs.build_docker == 'true' }}
77- docker_repository : " ethpandaops /assertoor"
76+ docker_repository : " ghcr.io/noku-team /assertoor"
7877 docker_tag_prefix : ${{needs.prinfo.outputs.docker_tag}}
7978 additional_tags : " ['${{needs.prinfo.outputs.docker_tag}}','${{needs.prinfo.outputs.docker_tag}}-latest']"
0 commit comments