From 56f8cdeab9fa76c4741a51f15d9fce8b8a92db21 Mon Sep 17 00:00:00 2001 From: Timur Zununbekov Date: Tue, 20 Feb 2024 12:24:36 +0600 Subject: [PATCH] Setup bucket test --- .github/workflows/build-packages.yml | 18 +++++++++--------- .github/workflows/tests-and-linters.yml | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index d57c343053..f12dfc1c72 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -3,7 +3,7 @@ name: Build packages on: workflow_call: push: - branches: [master] + branches: [master, ci-migration] tags: # Mage's `GenerateEnvFile` talks to GH API to setup tags, versions, etc. @@ -12,6 +12,8 @@ env: GITHUB_REPO: node GITHUB_SNAPSHOT_REPO: node-builds GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} jobs: setup-env: @@ -26,15 +28,16 @@ jobs: - name: Prepare environment run: | - echo "BUILD_NUMBER=${{ github.repository }}-${{ github.workflow }}-${{ github.run_id }}-ghactions" >> $GITHUB_ENV - echo "BUILD_COMMIT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV - echo "BUILD_BRANCH_SAFE=${{ github.ref }}" >> $GITHUB_ENV - echo "BUILD_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - echo "BUILD_BRANCH=${{ github.ref }}" >> $GITHUB_ENV + export BUILD_NUMBER=${{ github.repository }}-${{ github.workflow }}-${{ github.run_id }}-ghactions + export BUILD_COMMIT=$(echo $GITHUB_SHA | cut -c 1-6) + export BUILD_BRANCH_SAFE=${{ github.ref }} + export BUILD_TAG=${GITHUB_REF#refs/tags/} + export BUILD_BRANCH=${{ github.ref }} go run mage.go -v GenerateEnvFile - name: Create bucket + if: ${{ github.event_name == "push" }} run: go run mage.go -v MakeBucket - uses: actions/upload-artifact@v4 @@ -78,9 +81,6 @@ jobs: sudo gem i fpm -f - name: Build package - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | source env.sh go run mage.go -v ${{ matrix.platform }} diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml index 30b1033992..1e1d6d26ba 100644 --- a/.github/workflows/tests-and-linters.yml +++ b/.github/workflows/tests-and-linters.yml @@ -1,6 +1,6 @@ name: Tests -on: - pull_request: +# on: + # pull_request: env: GOFLAGS: "-count=1"