Skip to content

Commit b645221

Browse files
committed
1 parent fb6728b commit b645221

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

.github/workflows/docker.yml

+46-46
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,58 @@ on:
66
- deploy
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
9+
# build:
10+
# runs-on: ubuntu-latest
1111

12-
steps:
13-
# 1. Checkout репозиторий
14-
- name: Checkout code
15-
uses: actions/checkout@v4
12+
# steps:
13+
# # 1. Checkout репозиторий
14+
# - name: Checkout code
15+
# uses: actions/checkout@v4
1616

17-
# 2. Логинимся в DockerHub
18-
- name: Login to DockerHub Registry
19-
run: echo dckr_pat_6HmV5MDVrUU3Wfzu59ejhGGOBjs | docker login -u rasulovarsen --password-stdin
17+
# # 2. Логинимся в DockerHub
18+
# - name: Login to DockerHub Registry
19+
# run: echo dckr_pat_6HmV5MDVrUU3Wfzu59ejhGGOBjs | docker login -u rasulovarsen --password-stdin
2020

21-
# 3. Build ads_service
22-
- name: Build and push ads_service
23-
uses: docker/build-push-action@v4
24-
with:
25-
context: .
26-
file: ./microservices/ads_service/Dockerfile
27-
tags: rasulovarsen/ads_service:latest
28-
push: true
21+
# # 3. Build ads_service
22+
# - name: Build and push ads_service
23+
# uses: docker/build-push-action@v4
24+
# with:
25+
# context: .
26+
# file: ./microservices/ads_service/Dockerfile
27+
# tags: rasulovarsen/ads_service:latest
28+
# push: true
2929

30-
- name: Build and push auth_service
31-
uses: docker/build-push-action@v4
32-
with:
33-
context: .
34-
file: ./microservices/auth_service/Dockerfile
35-
tags: rasulovarsen/auth_service:latest
36-
push: true
30+
# - name: Build and push auth_service
31+
# uses: docker/build-push-action@v4
32+
# with:
33+
# context: .
34+
# file: ./microservices/auth_service/Dockerfile
35+
# tags: rasulovarsen/auth_service:latest
36+
# push: true
3737

38-
- name: Build and push city_service
39-
uses: docker/build-push-action@v4
40-
with:
41-
context: .
42-
file: ./microservices/city_service/Dockerfile
43-
tags: rasulovarsen/city_service:latest
44-
push: true
38+
# - name: Build and push city_service
39+
# uses: docker/build-push-action@v4
40+
# with:
41+
# context: .
42+
# file: ./microservices/city_service/Dockerfile
43+
# tags: rasulovarsen/city_service:latest
44+
# push: true
4545

46-
- name: Build and push migrator
47-
uses: docker/build-push-action@v4
48-
with:
49-
context: .
50-
file: ./cmd/migrator/Dockerfile
51-
tags: rasulovarsen/migrator:latest
52-
push: true
46+
# - name: Build and push migrator
47+
# uses: docker/build-push-action@v4
48+
# with:
49+
# context: .
50+
# file: ./cmd/migrator/Dockerfile
51+
# tags: rasulovarsen/migrator:latest
52+
# push: true
5353

54-
- name: Build and push backend
55-
uses: docker/build-push-action@v4
56-
with:
57-
context: .
58-
file: ./Dockerfile
59-
tags: rasulovarsen/backend:latest
60-
push: true
54+
# - name: Build and push backend
55+
# uses: docker/build-push-action@v4
56+
# with:
57+
# context: .
58+
# file: ./Dockerfile
59+
# tags: rasulovarsen/backend:latest
60+
# push: true
6161

6262
deploy:
6363
runs-on: ubuntu-latest
@@ -76,7 +76,7 @@ jobs:
7676
else cd backend
7777
fi
7878
git fetch --all
79-
git switch deploy
79+
git switch deploy -f
8080
git reset --hard origin/deploy
8181
docker rm -f $(sudo docker ps -aq)
8282
docker compose up -d

0 commit comments

Comments
 (0)