Skip to content

chore: release v1.0.0-beta.4 #98

chore: release v1.0.0-beta.4

chore: release v1.0.0-beta.4 #98

name: Build Latest Image
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- "docs/**"
workflow_dispatch:
jobs:
publish-latest-docker-image:
runs-on: ubuntu-latest
name: Build and publish docker image
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: |
cd web
npm install
- name: Build web
run: |
cd web
npm run build
- name: Build image
run: |
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/free-one-api:latest .
- name: Publish image
run: |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/free-one-api:latest