-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (27 loc) · 1.02 KB
/
Copy pathpython-app.yml
File metadata and controls
27 lines (27 loc) · 1.02 KB
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
name: Bot Telegram Deploy - ECS
on: workflow_dispatch
jobs:
docker-build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ secrets.REPO }}.dkr.ecr.us-east-1.amazonaws.com/pythonnetwork
IMAGE_TAG: ${{ github.sha }}
run: |
docker build --build-arg=DOPPLER_TOKEN=${{ secrets.DOPPLER_TOKEN }} -t python-network .
#docker tag python-network:latest $ECR_REPOSITORY:latest
#docker push $ECR_REPOSITORY:latest