mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
ci: rename default branch from master to main
This commit is contained in:
2
.github/workflows/nix.yml
vendored
2
.github/workflows/nix.yml
vendored
@@ -2,7 +2,7 @@ name: Nix
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ banner() {
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
if [[ $(git rev-parse --abbrev-ref HEAD) != master ]]; then
|
if [[ $(git rev-parse --abbrev-ref HEAD) != main ]]; then
|
||||||
banner "Skipping push on non-master branch"
|
banner "Skipping push on non-main branch"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
4
ci.sh
4
ci.sh
@@ -33,8 +33,8 @@ nix-build \
|
|||||||
--option sandbox true \
|
--option sandbox true \
|
||||||
--argstr system "$system_name"
|
--argstr system "$system_name"
|
||||||
|
|
||||||
if [[ $(git rev-parse --abbrev-ref HEAD) != master ]]; then
|
if [[ $(git rev-parse --abbrev-ref HEAD) != main ]]; then
|
||||||
banner "Skipping push on non-master branch"
|
banner "Skipping push on non-main branch"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ let
|
|||||||
];
|
];
|
||||||
Labels = {
|
Labels = {
|
||||||
# https://github.com/microscaling/microscaling/blob/55a2d7b91ce7513e07f8b1fd91bbed8df59aed5a/Dockerfile#L22-L33
|
# https://github.com/microscaling/microscaling/blob/55a2d7b91ce7513e07f8b1fd91bbed8df59aed5a/Dockerfile#L22-L33
|
||||||
"org.label-schema.vcs-ref" = "master";
|
"org.label-schema.vcs-ref" = "main";
|
||||||
"org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs";
|
"org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ let
|
|||||||
];
|
];
|
||||||
Labels = {
|
Labels = {
|
||||||
# https://github.com/microscaling/microscaling/blob/55a2d7b91ce7513e07f8b1fd91bbed8df59aed5a/Dockerfile#L22-L33
|
# https://github.com/microscaling/microscaling/blob/55a2d7b91ce7513e07f8b1fd91bbed8df59aed5a/Dockerfile#L22-L33
|
||||||
"org.label-schema.vcs-ref" = "master";
|
"org.label-schema.vcs-ref" = "main";
|
||||||
"org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs";
|
"org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user