From 2c8eb3c34c8f1a108eadf4e85f2e7356875ec16d Mon Sep 17 00:00:00 2001 From: Edward Fink Date: Thu, 12 Aug 2021 13:34:50 -0400 Subject: [PATCH] no modules --- .github/workflows/create_release.yml | 1 + make-release-secure.sh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 78f205e..f56b003 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -10,6 +10,7 @@ jobs: uses: actions/checkout@v2 - name: Build tgz run: bash make-release-secure.sh --dirname gh --version ${{ github.ref }} + if: startsWith(github.ref, 'refs/tags/') - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/make-release-secure.sh b/make-release-secure.sh index 204630c..25c9c77 100755 --- a/make-release-secure.sh +++ b/make-release-secure.sh @@ -25,7 +25,6 @@ fi # remove refs/tags/ # safeguard more RELEASE_VERSION=${RELEASE_VERSION:10} -RELEASE_VERSION='v1' OUTPUT_DIR=releases/$RELEASE_DIR/secure-roks-cluster TAR_NAME="secure-cluster-v$RELEASE_VERSION.tgz" @@ -35,12 +34,13 @@ echo "tar name: $TAR_NAME" mkdir -p $OUTPUT_DIR cp -r examples/secure-roks-cluster/. $OUTPUT_DIR -cp -R modules $OUTPUT_DIR -ls -Fal $OUTPUT_DIR +# cp -R modules $OUTPUT_DIR +# ls -Fal $OUTPUT_DIR # sed the files # note, if GNU, we'll need to modify this -sed -i -e 's#../../modules#./modules#g' $OUTPUT_DIR/*.tf +# For secure cluster right now, modules diretory isn't even needed. If it is, double check the seding is working +# sed -i -e 's#../../modules#./modules#g' $OUTPUT_DIR/*.tf # tar the files cd $OUTPUT_DIR/..