generated from nicholaswilde/docker-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ls, version, and commit to own files. Update ci.yaml
Signed-off-by: Nicholas Wilde <ncwilde43@gmail.com>
- Loading branch information
1 parent
215f3c9
commit cf64924
Showing
12 changed files
with
295 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
version: '3' | ||
|
||
tasks: | ||
run: | ||
desc: Run dgoss | ||
cmds: | ||
- "{{ .DGOSS_RUN }} {{ .TAG_VERSION }}" | ||
preconditions: | ||
- docker images -q {{ .TAG_VERSION }} 2> /dev/null | ||
|
||
edit: | ||
desc: Edit dgoss | ||
cmds: | ||
- "{{ .DGOSS_EDIT }} {{ .TAG_VERSION }}" | ||
preconditions: | ||
- docker images -q {{ .TAG_VERSION }} 2> /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
version: '3' | ||
|
||
tasks: | ||
print: | ||
desc: Print the LS value | ||
silent: true | ||
cmds: | ||
- printf "%s" "{{ .LS }}" | ||
|
||
increment: | ||
desc: Increment the LS value | ||
silent: true | ||
cmds: | ||
- | | ||
LS=$(( {{ .LS }} + 1 )) | ||
printf "%s" "$LS" > LS | ||
cat LS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
version: '3' | ||
|
||
tasks: | ||
print: | ||
desc: Print the latest app version | ||
silent: true | ||
cmds: | ||
- printf %s {{ .VERSION }} | ||
vars: | ||
VERSION: | ||
sh: curl -sX GET {{ .API_URL }} | jq --raw-output '. | .sha' | head -c7 | ||
|
||
export: | ||
desc: Export the latest app version to VERSION | ||
cmds: | ||
- printf "%s" "{{ .VERSION }}" > VERSION | ||
vars: | ||
VERSION: | ||
sh: curl -sX GET {{ .API_URL }} | jq --raw-output '. | .sha' | head -c7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
941c0d3a20b88384f303af6311fc33ede9d831b4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2 |
Oops, something went wrong.