Skip to content

feat: add nginx configuration and basic auth setup for documentation … #3

feat: add nginx configuration and basic auth setup for documentation …

feat: add nginx configuration and basic auth setup for documentation … #3

name: Build and push to Harbor
on:
push:
branches:
- develop
permissions:
contents: read
env:
REGISTRY: registry.dev.k8s-dev.org
REPOSITORY: team-webexp
REGISTRY_USER: robot$team-webexp-rw
IMAGE_TAG: dev
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup buildx
id: buildx
uses: docker/setup-buildx-action@v3.3.0
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ secrets.HARBOR_ROBOT_TOKEN }}
- name: Build checker docker image
uses: docker/build-push-action@v6
env:
APP: lido-docs
with:
file: Dockerfile
context: .
push: true
load: true
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.APP }}:${{ env.IMAGE_TAG }}
builder: ${{ steps.buildx.outputs.name }}