Skip to content

Bump dotnet/sdk from 8.0.301 to 8.0.302 (#42) #54

Bump dotnet/sdk from 8.0.301 to 8.0.302 (#42)

Bump dotnet/sdk from 8.0.301 to 8.0.302 (#42) #54

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
tags:
- v*
env:
IMAGE_NAME: 'apj-demo-1'
PROJECT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
jobs:
build-push-docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ secrets.AWS_ROLE_SESSION_NAME }}
aws-region: ap-southeast-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
registries: ${{ secrets.AWS_ACCOUNT_ID }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.ECR_REGISTRY }}/${{ env.IMAGE_NAME }}
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}