-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from atlanhq/m4380
MM-4380 fix: ensure DOCKERFILE installs the current version of argopm
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,14 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Get published version | ||
id: get_version | ||
run: | | ||
ARGOPM_VERSION=$(npm show . version) | ||
echo "The published version is: $ARGOPM_VERSION" | ||
echo "::set-output name=argopm_version::$ARGOPM_VERSION" | ||
# sleep 5 sec to make sure we can install the latest published version from npm in Dockerfile | ||
sleep 5 | ||
- name: 'Get Previous tag' | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@master" | ||
|
@@ -56,3 +64,4 @@ jobs: | |
build-args: | | ||
ACCESS_TOKEN_USR=$GITHUB_ACTOR | ||
ACCESS_TOKEN_PWD=${{ secrets.ORG_PAT_GITHUB }} | ||
ARGOPM_VERSION=${{ steps.get_version.outputs.published_version }} |
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