Skip to content

Commit

Permalink
ci image templating
Browse files Browse the repository at this point in the history
  • Loading branch information
masonmenges committed Apr 24, 2024
1 parent 5789c20 commit a16ece6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/ci_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
PROJECT_DIRECTTORY: flows/PATH/TO/PROJECT
PROD_WORKPOOL: PROD_WORKPOOL_NAME # Preconfigured workpool in the se-demos workspace
DEV_WORKPOOL: DEV_WORKPOOL_NAME # Preconfigured workpool in the se-demos-dev workspace
CLOUD_ENV: AWS # AWS, GCP, AZURE

on:
push:
Expand All @@ -34,6 +35,7 @@ jobs:
# to be referenced here defaults to AWS ECR REPO
- name: Log in to image registry
uses: docker/login-action@v3
if: env.CLOUD_ENV == 'AWS'
with:
registry: ${{ secrets.ECR_REPO }}
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aws_datalake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env:
PROJECT_DIRECTORY: flows/aws/datalake
PROD_WORKPOOL: Demo-ECS
DEV_WORKPOOL: Dev-ECS
CLOUD_ENV: AWS # AWS, GCP, AZURE

on:
push:
Expand All @@ -26,6 +27,7 @@ jobs:

- name: Log in to image registry
uses: docker/login-action@v3
if: env.CLOUD_ENV == 'AWS'
with:
registry: ${{ secrets.ECR_REPO }}
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit a16ece6

Please sign in to comment.