Commit b6e186f 1 parent 76e6bf9 commit b6e186f Copy full SHA for b6e186f
File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish main to AWS public ECR latest
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - update_cicd
8
+
9
+ jobs :
10
+ publish-to-aws-ecr :
11
+ runs-on : ubuntu-latest
12
+ env :
13
+ ENVIRONMENT : prod
14
+ IMAGE_NAME : ${{ vars.PUBLICECR_URI }}
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Configure AWS credentials
20
+ uses : aws-actions/configure-aws-credentials@v4
21
+ with :
22
+ aws-access-key-id : ${{ secrets.PUBLICECR_UPLOAD_ACCESS_KEY_ID }}
23
+ aws-secret-access-key : ${{ secrets.PUBLICECR_UPLOAD_SECRET_ACCESS_KEY }}
24
+ aws-region : ${{ vars.PUBLICECR_REGION }}
25
+
26
+ - name : Authenticate with AWS Public ECR
27
+ uses : aws-actions/amazon-ecr-login@v2
28
+ with :
29
+ registry-type : public
30
+
31
+ - name : Build
32
+ run : |
33
+ # docker build -t ${{ vars.PUBLICECR_URI }}:latest .
34
+ make build
35
+
36
+ - name : Publish To AWS ECR
37
+ run : |
38
+ # docker push ${{ vars.PUBLICECR_URI }}:latest
Original file line number Diff line number Diff line change 13
13
.idea
14
14
htmlcov
15
15
.pdm-python
16
+ * ~
You can’t perform that action at this time.
0 commit comments