Skip to content

add cicd

add cicd #1

name: Update pipeline prod
on:
push:
branches:
- main
jobs:
build:
name: Build and push container image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log into registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.ACR_ENDPOINT }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build & Push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.ACR_ENDPOINT }}/${{ vars.IMAGE_NAME }}:prod
file: ./Dockerfile