Skip to content

Commit caeb004

Browse files
authored
Need correct repo name (#286)
* Need correct repo name * Nix commit
1 parent ec236e3 commit caeb004

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/custom-images-build-and-deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ permissions:
2727
env:
2828
FLAKE_ROOT: nix/custom-images
2929
REGISTRY: ghcr.io
30-
IMAGE_NAMESPACE: ${{ github.repository_owner }}
3130

3231
jobs:
3332
determine-releases:
@@ -419,6 +418,10 @@ jobs:
419418
username: ${{ github.actor }}
420419
password: ${{ secrets.GITHUB_TOKEN }}
421420

421+
- name: Set lowercase repo owner
422+
id: repo
423+
run: echo "owner=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_OUTPUT"
424+
422425
- name: Create multi-architecture image
423426
env:
424427
IMAGE: ${{ matrix.release.image }}
@@ -427,7 +430,7 @@ jobs:
427430
run: |
428431
set -euo pipefail
429432
430-
image="${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${IMAGE}"
433+
image="${{ env.REGISTRY }}/${{ steps.repo.outputs.owner }}/${IMAGE}"
431434
432435
amd64="${image}:ci-${RUN_ID}-x86_64-linux"
433436
arm64="${image}:ci-${RUN_ID}-aarch64-linux"
@@ -444,7 +447,7 @@ jobs:
444447
run: |
445448
set -euo pipefail
446449
447-
image="${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${IMAGE}:${VERSION}"
450+
image="${{ env.REGISTRY }}/${{ steps.repo.outputs.owner }}/${IMAGE}:${VERSION}"
448451
449452
docker buildx imagetools inspect "$image"
450453

nix/custom-images/images/it-tools/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ in
8787
}
8888
];
8989

90+
9091
config = {
9192
Cmd = [ "${pkgs.nginx}/bin/nginx" "-c" "/etc/nginx/nginx.conf" ];
9293
ExposedPorts = {

0 commit comments

Comments
 (0)