perf: improving with dotnet #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |