mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 04:20:37 -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:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
|
||||
@@ -25,8 +25,8 @@ banner() {
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != master ]]; then
|
||||
banner "Skipping push on non-master branch"
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != main ]]; then
|
||||
banner "Skipping push on non-main branch"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
4
ci.sh
4
ci.sh
@@ -33,8 +33,8 @@ nix-build \
|
||||
--option sandbox true \
|
||||
--argstr system "$system_name"
|
||||
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != master ]]; then
|
||||
banner "Skipping push on non-master branch"
|
||||
if [[ $(git rev-parse --abbrev-ref HEAD) != main ]]; then
|
||||
banner "Skipping push on non-main branch"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ let
|
||||
];
|
||||
Labels = {
|
||||
# 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";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@ let
|
||||
];
|
||||
Labels = {
|
||||
# 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";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user