mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-08-17 01:20:44 +03:00
[Chore] Fix autoreleasing CI job
Problem: After a recent switch to GitHub Actions, job that creates prerelease suddenly stopped working. Solution: Switch to the autoreleasing script from serokell.nix which uses 'gh' instead of 'hub'.
This commit is contained in:
parent
64a338b567
commit
8e4de7a50a
7
.github/workflows/autorelease.yml
vendored
7
.github/workflows/autorelease.yml
vendored
@ -16,12 +16,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Create a pre-release
|
- name: Create a pre-release
|
||||||
|
env:
|
||||||
|
OVERWRITE_RELEASE: true
|
||||||
|
# https://github.com/serokell/serokell.nix/blob/c1e2a33040438443c7721523e897db5e32a52a74/overlay/github.nix#L26
|
||||||
run: |
|
run: |
|
||||||
export GITHUB_TOKEN=${{ env.GITHUB_TOKEN }}
|
nix run .#github.autorelease -- "$(nix-build ./release)" "Automatic release on "$(date +\"%Y%m%d%H%M\")""
|
||||||
nix shell .#curl .#gitAndTools.hub -c bash -c "curl https://raw.githubusercontent.com/serokell/scratch/release-binary/scripts/release-binary.sh | bash"
|
|
||||||
|
|
||||||
- name: Push latest image to dockerhub
|
- name: Push latest image to dockerhub
|
||||||
run: |
|
run: |
|
||||||
export DOCKERHUB_PASSWORD=${{ env.DOCKERHUB_PASSWORD }}
|
|
||||||
nix build -L .#docker-image
|
nix build -L .#docker-image
|
||||||
nix shell .#skopeo -c ./scripts/upload-docker-image.sh "docker-archive:$(readlink result)" "docker://docker.io/serokell/xrefcheck:latest"
|
nix shell .#skopeo -c ./scripts/upload-docker-image.sh "docker-archive:$(readlink result)" "docker://docker.io/serokell/xrefcheck:latest"
|
||||||
|
966
flake.lock
966
flake.lock
File diff suppressed because it is too large
Load Diff
@ -60,7 +60,6 @@
|
|||||||
apps.default = self.apps.${system}."x86_64-unknown-linux-musl:xrefcheck:exe:xrefcheck";
|
apps.default = self.apps.${system}."x86_64-unknown-linux-musl:xrefcheck:exe:xrefcheck";
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
|
|
||||||
default = self.packages.${system}.xrefcheck;
|
default = self.packages.${system}.xrefcheck;
|
||||||
|
|
||||||
xrefcheck = self.packages.${system}."xrefcheck:exe:xrefcheck";
|
xrefcheck = self.packages.${system}."xrefcheck:exe:xrefcheck";
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
let
|
let
|
||||||
defaultNix = import ../default.nix;
|
defaultNix = import ../default.nix;
|
||||||
in
|
in
|
||||||
{ pkgs ? defaultNix.legacyPackages, timestamp }:
|
{ pkgs ? defaultNix.legacyPackages }:
|
||||||
let
|
let
|
||||||
xrefcheck-x86_64-linux = defaultNix.packages.xrefcheck-static;
|
xrefcheck-x86_64-linux = defaultNix.packages.xrefcheck-static;
|
||||||
|
|
||||||
@ -25,14 +25,7 @@ let
|
|||||||
paths = [ "${xrefcheck-x86_64-windows}/bin" ];
|
paths = [ "${xrefcheck-x86_64-windows}/bin" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
releaseNotes = pkgs.writeText "release-notes.md" ''
|
|
||||||
Automatic release on ${timestamp}
|
|
||||||
'';
|
|
||||||
in pkgs.linkFarm "xrefcheck-release" [
|
in pkgs.linkFarm "xrefcheck-release" [
|
||||||
{
|
|
||||||
name = "release-notes.md";
|
|
||||||
path = releaseNotes;
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "xrefcheck-x86_64-linux";
|
name = "xrefcheck-x86_64-linux";
|
||||||
path = "${xrefcheck-x86_64-linux}/bin/xrefcheck";
|
path = "${xrefcheck-x86_64-linux}/bin/xrefcheck";
|
||||||
|
Loading…
Reference in New Issue
Block a user