Skip to content

Commit 3ee8c7e

Browse files
author
Maksim Litvinov
committed
fix deploy
1 parent 6515c26 commit 3ee8c7e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ jobs:
1717
- run: make build
1818
- run: make test
1919

20-
# deploy:
21-
# needs: build
22-
# runs-on: ubuntu-latest
23-
# if: ${{ github.event_name == 'push' }}
24-
#
25-
# steps:
26-
# - uses: actions/checkout@v2
27-
#
28-
# - uses: docker/setup-buildx-action@v1
29-
#
30-
# - uses: docker/login-action@v1
31-
# with:
32-
# username: ${{ secrets.DOCKER_USERNAME }}
33-
# password: ${{ secrets.DOCKER_PASSWORD }}
34-
#
35-
# - uses: docker/build-push-action@v2
36-
# with:
37-
# context: .
38-
# push: true
39-
# cache-from: hexletcomponents/java-spring-blog:latest
40-
# cache-to: type=inline
41-
# tags: hexletcomponents/java-spring-blog:latest
20+
deploy:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
if: ${{ github.event_name == 'push' }}
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: docker/setup-buildx-action@v3
29+
30+
- uses: docker/login-action@v3
31+
with:
32+
username: ${{ secrets.DOCKER_USERNAME }}
33+
password: ${{ secrets.DOCKER_PASSWORD }}
34+
35+
- uses: docker/build-push-action@v5
36+
with:
37+
context: .
38+
push: true
39+
cache-from: hexletcomponents/java-spring-blog:latest
40+
cache-to: type=inline
41+
tags: hexletcomponents/java-spring-blog:latest

0 commit comments

Comments
 (0)