Merge pull request #2 from rodekruis/dev #4
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: 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 |