Skip to content

perf: improving with dotnet #63

perf: improving with dotnet

perf: improving with dotnet #63

Workflow file for this run

name: CI for Auth Service
on:
push:
branches:
- 'master'
paths:
- 'auth/**'
- '.github/workflows/auth-ci.yml'
workflow_dispatch:
jobs:
build_push:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build, tag, and push image to Docker Hub
env:
ECR_REPOSITORY: auth-svc
IMAGE_TAG: ${{ github.sha }}
run: |
cd auth
docker build -t ${{ secrets.DOCKER_USERNAME }}/$ECR_REPOSITORY:$IMAGE_TAG .
docker build -t ${{ secrets.DOCKER_USERNAME }}/$ECR_REPOSITORY:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/$ECR_REPOSITORY:$IMAGE_TAG
docker push ${{ secrets.DOCKER_USERNAME }}/$ECR_REPOSITORY:latest