|
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [main, staging] |
| 5 | + branches: [main, staging, dev] |
6 | 6 | pull_request: |
7 | | - branches: [main, staging] |
| 7 | + branches: [main, staging, dev] |
8 | 8 |
|
9 | 9 | concurrency: |
10 | 10 | group: ci-${{ github.ref }} |
|
23 | 23 | detect-version: |
24 | 24 | name: Detect Version |
25 | 25 | runs-on: blacksmith-4vcpu-ubuntu-2404 |
26 | | - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') |
| 26 | + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/dev') |
27 | 27 | outputs: |
28 | 28 | version: ${{ steps.extract.outputs.version }} |
29 | 29 | is_release: ${{ steps.extract.outputs.is_release }} |
|
49 | 49 | build-amd64: |
50 | 50 | name: Build AMD64 |
51 | 51 | needs: [test-build, detect-version] |
52 | | - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') |
| 52 | + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/dev') |
53 | 53 | runs-on: blacksmith-8vcpu-ubuntu-2404 |
54 | 54 | permissions: |
55 | 55 | contents: read |
|
75 | 75 | - name: Configure AWS credentials |
76 | 76 | uses: aws-actions/configure-aws-credentials@v4 |
77 | 77 | with: |
78 | | - role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_TO_ASSUME || secrets.STAGING_AWS_ROLE_TO_ASSUME }} |
79 | | - aws-region: ${{ github.ref == 'refs/heads/main' && secrets.AWS_REGION || secrets.STAGING_AWS_REGION }} |
| 78 | + role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_TO_ASSUME || github.ref == 'refs/heads/dev' && secrets.DEV_AWS_ROLE_TO_ASSUME || secrets.STAGING_AWS_ROLE_TO_ASSUME }} |
| 79 | + aws-region: ${{ github.ref == 'refs/heads/main' && secrets.AWS_REGION || github.ref == 'refs/heads/dev' && secrets.DEV_AWS_REGION || secrets.STAGING_AWS_REGION }} |
80 | 80 |
|
81 | 81 | - name: Login to Amazon ECR |
82 | 82 | id: login-ecr |
|
0 commit comments