Skip to content

Build and Push Docker Images #1

Build and Push Docker Images

Build and Push Docker Images #1

Workflow file for this run

name: Build and Push Docker Image
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Azure Container Registry
uses: azure/docker-login@v1
with:
login-server: pypiscoutacr.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build and Push Docker image
run: |
docker buildx create --use
docker buildx build --platform linux/amd64 -t pypiscoutacr.azurecr.io/pypi-scout-backend:latest --push