Skip to content

Commit

Permalink
Setup bucket test
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 20, 2024
1 parent ca79b92 commit 58ccf39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand All @@ -26,15 +28,15 @@ 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
BUILD_NUMBER=${{ github.repository }}-${{ github.workflow }}-${{ github.run_id }}-ghactions \
BUILD_COMMIT=$(echo $GITHUB_SHA | cut -c 1-6) \
BUILD_BRANCH_SAFE=${{ github.ref }} \
BUILD_TAG=${GITHUB_REF#refs/tags/} \
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
Expand Down Expand Up @@ -78,9 +80,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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-and-linters.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Tests
on:
pull_request:
# on:
# pull_request:

env:
GOFLAGS: "-count=1"
Expand Down

0 comments on commit 58ccf39

Please sign in to comment.