Skip to content

Merge pull request #40 from wangdashuaihenshuai/main #1

Merge pull request #40 from wangdashuaihenshuai/main

Merge pull request #40 from wangdashuaihenshuai/main #1

Workflow file for this run

name: release_docker
on:
push:
branches: ["main","release"]
jobs:
release_docker:
name: Release Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
cd node-proxy
npm install && npm run build
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_NAME }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: wangjinhai68
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7