Skip to content

Commit

Permalink
Create s3 bucket once before the build
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 21, 2024
1 parent cb4b57c commit 69f7f1a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'

- name: Prepare environment
run: |
Expand Down Expand Up @@ -64,6 +68,16 @@ jobs:
name: env.sh
path: env.sh

- name: Create bucket
if: |
github.ref == 'refs/heads/master' ||
github.ref_type == 'tag'
env:
AWS_EC2_METADATA_DISABLED: true
run: |
source env.sh
go run mage.go -v MakeBucket
build-packages:
runs-on: ubuntu-latest
needs: [setup-env]
Expand Down Expand Up @@ -94,16 +108,6 @@ jobs:
with:
name: env.sh

- name: Create bucket
if: |
github.ref == 'refs/heads/master' ||
github.ref_type == 'tag'
env:
AWS_EC2_METADATA_DISABLED: true
run: |
source env.sh
go run mage.go -v MakeBucket
- name: Setup FPM
run: |
sudo apt-get install ruby-dev build-essential
Expand Down

0 comments on commit 69f7f1a

Please sign in to comment.