This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
poc: update traefik crd #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install mkdocs-material | |
run: pip install mkdocs-material | |
- name: Publish docs | |
run: mkdocs gh-deploy --config-file docs/mkdocs.yml --force | |
docker-build: | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@312f67c6629946ba17269558b63d0bd84a63caab | |
- name: Log in to the Container registry | |
uses: docker/login-action@d398f07826957cd0a18ea1b059cf1207835e60bc | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@97c170d70b5f8bfc77e6b23e68381f217cb64ded | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=ref,enable=true,event=branch | |
type=sha,enable=true,prefix=,format=long | |
- name: Build and push Docker image | |
uses: docker/build-push-action@42863b1282f7046f6c1ec9222965bbceafae3bb8 | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=registry,ref=${{ fromJSON(steps.meta.outputs.json).tags[0] }}-buildcache | |
cache-to: type=registry,ref=${{ fromJSON(steps.meta.outputs.json).tags[0] }}-buildcache,mode=max |