Skip to content

Commit

Permalink
containers: rename cleanup-bm to cleanup-bare-metal
Browse files Browse the repository at this point in the history
For some reason, ghcr.io won't let use upload a package named
cleanup-bm, but it let's us upload other packages. Renaming the package
fixes the issue.
  • Loading branch information
Freax13 committed Oct 28, 2024
1 parent e73c8de commit 8ad6fef
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: push cleanup-bm image
name: push cleanup-bare-metal image

on:
pull_request:
Expand Down Expand Up @@ -34,6 +34,6 @@ jobs:
cat <<EOF > justfile.env
container_registry=${{ env.container_registry }}
EOF
- name: Build and push cleanup-bm image
- name: Build and push cleanup-bare-metal image
run: |
just push cleanup-bm
just push cleanup-bare-metal
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ let
};
};

cleanup-bm = dockerTools.buildImage {
name = "cleanup-bm";
cleanup-bare-metal = dockerTools.buildImage {
name = "cleanup-bare-metal";
tag = "v0.0.1";
copyToRoot = with pkgs; [
cacert
];
config = {
Cmd = [ "${lib.getExe pkgs.scripts.cleanup-bm}" ];
Cmd = [ "${lib.getExe pkgs.scripts.cleanup-bare-metal}" ];
};
};
};
Expand Down
6 changes: 3 additions & 3 deletions packages/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,15 @@
'';
};

cleanup-bm = writeShellApplication {
name = "cleanup-bm";
cleanup-bare-metal = writeShellApplication {
name = "cleanup-bare-metal";
runtimeInputs = with pkgs; [
busybox
kubectl
dasel
scripts.cleanup-images
];
text = builtins.readFile ./cleanup-bm.sh;
text = builtins.readFile ./cleanup-bare-metal.sh;
};

cleanup-images = writeShellApplication {
Expand Down
2 changes: 1 addition & 1 deletion tools/bm-maintenance/deployment_tdx_snp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
serviceAccountName: cleanup-sa
containers:
- name: cleanup
image: ghcr.io/edgelesssys/contrast/cleanup-bm:v0.0.1
image: ghcr.io/edgelesssys/contrast/cleanup-bare-metal:v0.0.1
env:
- name: OPTEDGELESS
value: /opt/edgeless
Expand Down

0 comments on commit 8ad6fef

Please sign in to comment.