fix: 修复未配置端点的情况下设置页面崩溃 #5
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: "Make Docker Image" | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: "Build Image" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
node: [ 16 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Dotenv File | |
uses: actually-colab/github-action-create-env-file@v2.3 | |
with: | |
envkey_CEVER_VERSION: ${{ github.ref }} | |
file_name: .env | |
directory: . | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
hoshinosuzumi/cfever:latest | |
hoshinosuzumi/cfever:${{ github.ref }} | |
ghcr.io/uniiemstudio/ctfever:latest | |
ghcr.io/uniiemstudio/ctfever:${{ github.ref }} |