From eaac6de480d3d0a9755e716447d185fc8c8b41db Mon Sep 17 00:00:00 2001 From: Julien CAFFET Date: Sat, 11 Jan 2025 14:17:37 +0100 Subject: [PATCH] Add CI/CD --- .github/workflows/vm-release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/vm-release.yml b/.github/workflows/vm-release.yml index bb2535b..7ccacc3 100644 --- a/.github/workflows/vm-release.yml +++ b/.github/workflows/vm-release.yml @@ -23,6 +23,7 @@ env: AWS_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }} PRODUCT: nuklaivm APPLICATION: nodes + TARBALL_NAME: nuklaivm-${{ github.sha }}.tar.gz jobs: build_and_deploy: @@ -39,12 +40,11 @@ jobs: - name: Build tar ball run: | - TARBALL=nuklaivm-${{ github.sha }}.tar.gz EXCLUDES=$(cat .gitignore .dockerignore 2>/dev/null | grep -v '^#' | sed '/^$/d' | sed 's/^/--exclude=/' | tr '\n' ' ') EXCLUDES+=" --exclude='./web_wallet'" - touch $TARBALL - eval "tar -czf $TARBALL --exclude=$TARBALL $EXCLUDES -C . ." + touch ${{ env.TARBALL_NAME }} + eval "tar -czf ${{ env.TARBALL_NAME }} --exclude=${{ env.TARBALL_NAME }} $EXCLUDES -C . ." - # - name: Push to S3 - # run: | - # aws s3 sync s3://${{ env.AWS_S3_BUCKET }} --follow-symlinks --delete --no-progress + - name: Push to S3 + run: | + aws s3 sync ${{ env.TARBALL_NAME }} s3://${{ env.AWS_S3_BUCKET }} --follow-symlinks --delete --no-progress