Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Litvinov committed Apr 11, 2024
1 parent 6515c26 commit 3ee8c7e
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ jobs:
- run: make build
- run: make test

# deploy:
# needs: build
# runs-on: ubuntu-latest
# if: ${{ github.event_name == 'push' }}
#
# steps:
# - uses: actions/checkout@v2
#
# - uses: docker/setup-buildx-action@v1
#
# - uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
#
# - uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# cache-from: hexletcomponents/java-spring-blog:latest
# cache-to: type=inline
# tags: hexletcomponents/java-spring-blog:latest
deploy:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}

steps:
- uses: actions/checkout@v4

- uses: docker/setup-buildx-action@v3

- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- uses: docker/build-push-action@v5
with:
context: .
push: true
cache-from: hexletcomponents/java-spring-blog:latest
cache-to: type=inline
tags: hexletcomponents/java-spring-blog:latest

0 comments on commit 3ee8c7e

Please sign in to comment.