-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 993 Bytes
/
deploy.yml
File metadata and controls
38 lines (33 loc) · 993 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
34
35
36
37
38
name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
9.0.x
- name: Publish
run: dotnet publish src/Automation/Estranged.Automation.csproj --configuration Release --runtime linux-x64 --framework net9.0 --output build/output
- name: Login to Public ECR
uses: docker/login-action@v1
with:
registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Push to ECR
env:
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t public.ecr.aws/j7m3k0v4/estbot:$IMAGE_TAG .
docker build -t public.ecr.aws/j7m3k0v4/estbot:latest .
docker push --all-tags public.ecr.aws/j7m3k0v4/estbot