-
Notifications
You must be signed in to change notification settings - Fork 16
31 lines (26 loc) · 964 Bytes
/
main-acapy.yml
File metadata and controls
31 lines (26 loc) · 964 Bytes
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
name: Push acapy main to ECR stable
on:
workflow_dispatch:
push:
paths:
- aries-acapy-plugin-toolbox/**
branches: ["main"]
jobs:
pushToECR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Logging in to ECR
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/openearthfoundation
- name: Pushing OC-acapy to ECR
env:
SHA: ${{ github.sha }}
IMAGE: public.ecr.aws/openearthfoundation/openclimate-acapy
run: |
docker build -t $IMAGE:$SHA --file aries-acapy-plugin-toolbox/Dockerfile.local aries-acapy-plugin-toolbox
docker tag $IMAGE:$SHA $IMAGE:stable
docker push $IMAGE:$SHA
docker push $IMAGE:stable