add: HAR traces
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
name: Build and Push Registry Server Image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Docker Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
IMAGE=naeel/terraform-registry-server:docs-dev
|
||||
docker build -t $IMAGE -f operator/build/Dockerfile.registry .
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
IMAGE=naeel/terraform-registry-server:docs-dev
|
||||
docker push $IMAGE
|
||||
|
||||
- name: Output done
|
||||
run: echo "Image pushed: naeel/terraform-registry-server:docs-dev"
|
||||
@@ -0,0 +1,57 @@
|
||||
name: Publish docs to registry
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
workflow_dispatch: {}
|
||||
|
||||
env:
|
||||
NAMESPACE: nubes
|
||||
NAME: nubes
|
||||
DEFAULT_HOST: terra.k8c.ru
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install mkdocs and theme
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install mkdocs mkdocs-material
|
||||
|
||||
- name: Build site
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
if [ -z "$VERSION" ]; then VERSION=dev; fi
|
||||
# Replace placeholder site_url in mkdocs config so relative links are generated correctly
|
||||
sed -i "s|REPLACE_VERSION|$VERSION|g" mkdocs.yml
|
||||
mkdocs build -d site
|
||||
|
||||
- name: Install mc (S3 client)
|
||||
run: |
|
||||
wget -q https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && sudo mv mc /usr/local/bin/
|
||||
|
||||
- name: Publish to S3
|
||||
env:
|
||||
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
||||
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
|
||||
REGISTRY_HOST: ${{ secrets.REGISTRY_HOSTNAME || env.DEFAULT_HOST }}
|
||||
NAMESPACE: ${{ env.NAMESPACE }}
|
||||
NAME: ${{ env.NAME }}
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
if [ -z "$VERSION" ]; then VERSION=dev; fi
|
||||
./scripts/publish-docs.sh site "$REGISTRY_HOST" $NAMESPACE $NAME "$VERSION"
|
||||
|
||||
- name: Success message
|
||||
run: echo "Docs published for version ${GITHUB_REF#refs/tags/}"
|
||||
Reference in New Issue
Block a user