Skip to content

未配置端点错误处理 #4

未配置端点错误处理

未配置端点错误处理 #4

Workflow file for this run

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 }}