Skip to content
Snippets Groups Projects
Verified Commit e0934057 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: test gorelease

parent f345971b
No related branches found
No related tags found
No related merge requests found
...@@ -31,14 +31,15 @@ release: ...@@ -31,14 +31,15 @@ release:
tags: tags:
- nixos - nixos
stage: release stage: release
image: #image:
name: goreleaser/goreleaser # name: goreleaser/goreleaser
entrypoint: [""] # entrypoint: [""]
only: only:
- tags - tags
variables: variables:
# Disable shallow cloning so that goreleaser can diff between tags to # Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0 GIT_DEPTH: 0
script: script:
- cd source; goreleaser release --clean - devenv shell deploy-app
#- cd source; goreleaser release --clean
/nix/store/q73fwxvz5m9r7n2iyfsmkj9hs8zwr9vd-goreleaser.yml
\ No newline at end of file
...@@ -73,16 +73,17 @@ tasks: ...@@ -73,16 +73,17 @@ tasks:
tags: tags:
- nixos - nixos
stage: release stage: release
image: #image:
name: goreleaser/goreleaser # name: goreleaser/goreleaser
entrypoint: [""] # entrypoint: [""]
only: only:
- tags - tags
variables: variables:
# Disable shallow cloning so that goreleaser can diff between tags to # Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0 GIT_DEPTH: 0
script: script:
- cd source; goreleaser release --clean - devenv shell deploy-app
#- cd source; goreleaser release --clean
''; '';
}; };
...@@ -132,8 +133,8 @@ builds: ...@@ -132,8 +133,8 @@ builds:
# - windows_amd64_v1 # - windows_amd64_v1
# - windows_arm64 # - windows_arm64
# - windows_386 # - windows_386
# dir: source dir: source
# main: source/main.go main: source/main.go
# binary: version # binary: version
# builder: go # builder: go
# gobinary: go # gobinary: go
...@@ -267,7 +268,7 @@ builds: ...@@ -267,7 +268,7 @@ builds:
# Usage for Taskfile.yaml # Usage for Taskfile.yaml
update_symlink "${config.devenv.root}/Taskfile.yaml" "${taskfileYaml}" update_symlink "${config.devenv.root}/Taskfile.yaml" "${taskfileYaml}"
update_symlink "${config.devenv.root}/source/.goreleaser.yml" "${goReleaserYaml}" update_symlink "${config.devenv.root}/.goreleaser.yml" "${goReleaserYaml}"
cat ${gitlabCiYaml} > "${config.devenv.root}/.gitlab-ci.yml" cat ${gitlabCiYaml} > "${config.devenv.root}/.gitlab-ci.yml"
...@@ -289,6 +290,12 @@ ${pkgs.nix}/bin/nix build .#version ...@@ -289,6 +290,12 @@ ${pkgs.nix}/bin/nix build .#version
''; '';
scripts.deploy-app.exec = ''
#!${pkgs.bash}/bin/bash
${pkgs.goreleaser}/bin/goreleaser release --clean --config ${config.devenv.root}/.goreleaser.yml
'';
# # This script is executed when the app is built # # This script is executed when the app is built
# # You can use it to build the app # # You can use it to build the app
# scripts.build-app.exec = '' # scripts.build-app.exec = ''
......
/nix/store/sbjx6h6bhcrz5jic704d188l0jqr8051-goreleaser.yml
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment