mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
ci: updated workflow
This commit is contained in:
5
.github/workflows/docker-crawlab.yml
vendored
5
.github/workflows/docker-crawlab.yml
vendored
@@ -177,10 +177,9 @@ jobs:
|
||||
- name: Update Dockerfile
|
||||
run: |
|
||||
for name in crawlab-backend crawlab-frontend; do
|
||||
IMAGE_NAME=${{ env.IMAGE_NAME_CRAWLAB_GITHUB }}/$name
|
||||
sed -i "s/crawlabteam\/${name}:latest/${IMAGE_NAME}:${{ needs.setup.outputs.image_hash }}/" Dockerfile
|
||||
IMAGE_NAME=ghcr.io/crawlab-team/crawlab/$name
|
||||
sed -i "s|crawlabteam/${name}:latest|${IMAGE_NAME}:${{ needs.setup.outputs.image_hash }}|" Dockerfile
|
||||
done
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
||||
@@ -2,8 +2,6 @@ FROM crawlabteam/crawlab-backend:latest AS backend-build
|
||||
|
||||
FROM crawlabteam/crawlab-frontend:latest AS frontend-build
|
||||
|
||||
FROM crawlabteam/crawlab-public-plugins:latest AS public-plugins-build
|
||||
|
||||
# images
|
||||
FROM crawlabteam/crawlab-base:latest
|
||||
|
||||
@@ -20,9 +18,6 @@ RUN cp /opt/bin/crawlab /usr/local/bin/crawlab-server
|
||||
# copy frontend files
|
||||
COPY --from=frontend-build /app/dist /app/dist
|
||||
|
||||
# copy public-plugins files
|
||||
COPY --from=public-plugins-build /app/plugins /app/plugins
|
||||
|
||||
# copy nginx config files
|
||||
COPY ./nginx/crawlab.conf /etc/nginx/conf.d
|
||||
|
||||
|
||||
Reference in New Issue
Block a user