Skip to content

Commit

Permalink
no modules
Browse files Browse the repository at this point in the history
  • Loading branch information
finken2 committed Aug 12, 2021
1 parent 66bb8ad commit 2c8eb3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down
8 changes: 4 additions & 4 deletions make-release-secure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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/..

Expand Down

0 comments on commit 2c8eb3c

Please sign in to comment.