-
Notifications
You must be signed in to change notification settings - Fork 26
33 lines (29 loc) · 1.06 KB
/
solis-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Solis Build & Push Image to Amazon ECR
on:
# push:
# branches:
# - main
# # TODO: remove this once merged into main
# pull_request:
# types: [synchronize, opened, reopened]
jobs:
build-and-push-solis-image:
runs-on: ubuntu-latest # This specifies the runner environment
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_REGION: ${{ secrets.AWS_REGION }}
- name: Build Solis, tag, and push image to Amazon ECR
run: |
docker buildx create --use --name ecr-deploy-builder-solis
docker buildx build --tag ${{ secrets.ECR_URL }}:solis-latest --file ./Dockerfile . --load
docker push ${{ secrets.ECR_URL }}:solis-latest