Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kalicyh committed Aug 7, 2024
1 parent 2555d30 commit 493baea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: one-api docker image
on:
push:
branches:
- main
- docker
tags:
- "v*"
paths-ignore:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ vars.DOCKER_HUB_USERNAME }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} # Replace with your Docker Hub password secret

- name: Docker meta
Expand All @@ -99,8 +99,8 @@ jobs:
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ vars.DOCKER_HUB_USERNAME }}/${{ vars.DOCKER_HUB_REPO }}
docker.io/${{ vars.DOCKER_HUB_USERNAME }}/${{ vars.DOCKER_HUB_REPO }}
ghcr.io/${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO }}
docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' }}
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16 as builder
FROM node:22.4.1 as builder

WORKDIR /build
COPY web/package.json .
RUN npm install
RUN yarn install
COPY ./web .
COPY ./VERSION .
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) yarn run build

FROM golang AS builder2

Expand Down

0 comments on commit 493baea

Please sign in to comment.