Skip to content

Added utility script and pipeline to build/push Docker image #3

Added utility script and pipeline to build/push Docker image

Added utility script and pipeline to build/push Docker image #3

name: DockerBuildPush
on:
push:
branches: [main]
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Harbor
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASS }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: breizhcamp/kalon:1.0.0,breizhcamp/kalon:latest