Skip to content

Build demo supplier only via GitHub Actions #2

Build demo supplier only via GitHub Actions

Build demo supplier only via GitHub Actions #2

Workflow file for this run

name: Publish demo-supplier
on:
push:
branches:
- "main"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push multi-arch Docker image
working-directory: ./demo-supplier
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag ${{ vars.DOCKER_DEMO_SUPPLIER_IMAGE_NAME }}:latest . \
--push