-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ecs-deploy): make docker_image_tag optionnal
- Loading branch information
1 parent
e129148
commit 4dba87e
Showing
4 changed files
with
70 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: "Lookup git hash" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Lookup Git hash | ||
id: git_hash | ||
run: | | ||
REF="$(git rev-parse --short HEAD)" | ||
PREVIOUS_REF="$(git rev-parse --short HEAD~1)" | ||
echo "current=$REF" >> "${GITHUB_OUTPUT}" | ||
echo "previous=$PREVIOUS_REF" >> "${GITHUB_OUTPUT}" |
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,13 @@ | ||
--- | ||
name: "Lookup git tag" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get version from tags | ||
id: git_tag | ||
run: | | ||
REF="${GITHUB_REF#refs/tags/}" | ||
PREVIOUS_REF="$(git tag -l 'v*' --sort=-v:refname | head -n2 | tail -n1)" | ||
echo "current=$REF" >> "${GITHUB_OUTPUT}" | ||
echo "previous=$PREVIOUS_REF" >> "${GITHUB_OUTPUT}" |
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