Skip to content

Commit 52de053

Browse files
committed
ops: removed docker push CI action
1 parent 3c96eab commit 52de053

File tree

1 file changed

+51
-52
lines changed

1 file changed

+51
-52
lines changed

.github/workflows/push-server.yml

+51-52
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
11
name: Create Docker Images
2-
on:
3-
workflow_call:
4-
secrets:
5-
DOCKER_USERNAME:
6-
required: true
7-
DOCKER_PASSWORD:
8-
required: true
9-
workflow_dispatch:
10-
push:
11-
branches:
12-
- 'main'
13-
14-
jobs:
15-
build_server:
16-
name: Building Server Docker Image
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout the repo
20-
uses: actions/checkout@v4
21-
22-
- name: Setup buildx
23-
uses: docker/setup-buildx-action@v3
24-
25-
- name: Login to Docker Hub
26-
uses: docker/login-action@v3
27-
with:
28-
username: ${{ secrets.DOCKER_USERNAME }}
29-
password: ${{ secrets.DOCKER_PASSWORD }}
30-
31-
- name: Docker meta
32-
id: meta
33-
uses: docker/metadata-action@v5
34-
with:
35-
# list of Docker images to use as base name for tags
36-
images: |
37-
arguflow/search
38-
tags: |
39-
type=schedule
40-
type=ref,event=branch
41-
type=ref,event=pr
42-
type=sha
43-
44-
- name: Build and push Docker image
45-
uses: docker/build-push-action@v5
46-
with:
47-
cache-from: type=gha
48-
cache-to: type=gha,mode=max
49-
context: server/
50-
file: ./server/Dockerfile.no-ocr
51-
push: true
52-
tags: ${{ steps.meta.outputs.tags }}
53-
labels: ${{ steps.meta.outputs.labels }}
2+
# on:
3+
# workflow_call:
4+
# secrets:
5+
# DOCKER_USERNAME:
6+
# required: true
7+
# DOCKER_PASSWORD:
8+
# required: true
9+
# workflow_dispatch:
10+
# push:
11+
# branches:
12+
# - 'main'
13+
#
14+
# jobs:
15+
# build_server:
16+
# name: Building Server Docker Image
17+
# steps:
18+
# - name: Checkout the repo
19+
# uses: actions/checkout@v4
20+
#
21+
# - name: Setup buildx
22+
# uses: docker/setup-buildx-action@v3
23+
#
24+
# - name: Login to Docker Hub
25+
# uses: docker/login-action@v3
26+
# with:
27+
# username: ${{ secrets.DOCKER_USERNAME }}
28+
# password: ${{ secrets.DOCKER_PASSWORD }}
29+
#
30+
# - name: Docker meta
31+
# id: meta
32+
# uses: docker/metadata-action@v5
33+
# with:
34+
# # list of Docker images to use as base name for tags
35+
# images: |
36+
# arguflow/search
37+
# tags: |
38+
# type=schedule
39+
# type=ref,event=branch
40+
# type=ref,event=pr
41+
# type=sha
42+
#
43+
# - name: Build and push Docker image
44+
# uses: docker/build-push-action@v5
45+
# with:
46+
# cache-from: type=gha
47+
# cache-to: type=gha,mode=max
48+
# context: server/
49+
# file: ./server/Dockerfile.no-ocr
50+
# push: true
51+
# tags: ${{ steps.meta.outputs.tags }}
52+
# labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)