Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
or maybe this juan
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdeafcafe committed Apr 27, 2020
1 parent 42e4998 commit 72a9b97
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ jobs:
run: dotnet restore ./dotnet
- name: Build
run: dotnet build ./dotnet --configuration Release --no-restore
# - name: Create docker iamge
# run: docker build ./dotnet
- name: Push docker image
uses: kciter/aws-ecr-action@v1
with:
access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
account_id: ${{ secrets.AWS_ACCOUNT_ID }}
repo: branch-dotnet-services
region: eu-west-2
tags: latest,${{ github.sha }},${{ steps.branch_name.outputs.branch }}
path: ./dotnet
- run: docker build --tag ${{ steps.branch_name.outputs.branch }} ./dotnet
- name: Push to ECR
uses: jwalton/gh-ecr-push@v1
with:
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: eu-west-2
image: ${{ steps.branch_name.outputs.branch }}

0 comments on commit 72a9b97

Please sign in to comment.