Skip to content

chore: 指定 node 版本,修复 vercel 构建报错 #4

chore: 指定 node 版本,修复 vercel 构建报错

chore: 指定 node 版本,修复 vercel 构建报错 #4

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches: ["master"]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
environment: production
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: dedicatus545/github-cors-server
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}