-
Notifications
You must be signed in to change notification settings - Fork 16
33 lines (27 loc) · 1016 Bytes
/
Copy pathacapy-actions.yml
File metadata and controls
33 lines (27 loc) · 1016 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
32
33
name: Push acapy dev to ECR latest
on:
workflow_dispatch:
push:
paths:
- aries-acapy-plugin-toolbox/**
- k8s/openclimate-acapy-**
branches: ["develop"]
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:
VERSION: ${{ github.sha }}
IMAGE: public.ecr.aws/openearthfoundation/openclimate-acapy
run: |
docker build -t $IMAGE:$VERSION --file aries-acapy-plugin-toolbox/Dockerfile.local aries-acapy-plugin-toolbox
docker tag $IMAGE:$VERSION $IMAGE:latest
docker push $IMAGE:$VERSION
docker push $IMAGE:latest