Skip to content

docs: 📝 add rate limiter implement doc #10

docs: 📝 add rate limiter implement doc

docs: 📝 add rate limiter implement doc #10

Workflow file for this run

on:
push:
branches:
- vue-press
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
COMMENT_SECRET: ${{ secrets.COMMENT_SECRET }}
COMMENT_APPID: ${{ secrets.COMMENT_APPID }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
yarn
yarn build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
type=schedule
type=ref,event=tag
type=sha,prefix=,format=long,enable=true,priority=100
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}