Skip to content

Commit fdb43f5

Browse files
chore(workflows): update Docker repository references to GitHub Container Registry across all build workflows
1 parent 6ff2002 commit fdb43f5

File tree

4 files changed

+320
-323
lines changed

4 files changed

+320
-323
lines changed

.github/workflows/build-dev-latest.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Build latest image
32

43
on:
@@ -12,7 +11,6 @@ permissions:
1211
contents: write
1312

1413
jobs:
15-
1614
check_source:
1715
name: "Run code checks"
1816
uses: ./.github/workflows/_shared-check.yaml
@@ -25,6 +23,6 @@ jobs:
2523
ref: ${{ github.sha }}
2624
release: "snapshot"
2725
docker: true
28-
docker_repository: "ethpandaops/assertoor"
26+
docker_repository: "ghcr.io/noku-team/assertoor"
2927
docker_tag_prefix: "master"
3028
additional_tags: "['master','master-latest','latest']"

.github/workflows/build-dev.yml

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Build PR
32

43
on:
@@ -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"
@@ -74,6 +73,6 @@ jobs:
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

Comments
 (0)