This commit is contained in:
17
.github/workflows/deploy.yml
vendored
17
.github/workflows/deploy.yml
vendored
@@ -41,6 +41,19 @@ jobs:
|
||||
docker pull openjdk:17-jdk-slim
|
||||
docker images
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /tmp/.docker-cache
|
||||
key: ${{ runner.os }}-docker-cache-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-docker-cache-
|
||||
|
||||
- name: Verify Docker environment
|
||||
run: |
|
||||
docker version
|
||||
docker info
|
||||
|
||||
- name: Login to Docker Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v2
|
||||
@@ -63,7 +76,7 @@ jobs:
|
||||
run: |
|
||||
mvn jib:dockerBuild \
|
||||
-Djib.to.image=light-delivery-app:${{ github.sha }} \
|
||||
-Djib.allowInsecureRegistries=true \
|
||||
-Djib.allowInsecureRegistries=false \
|
||||
-Djib.httpTimeout=60000 \
|
||||
-Djib.sendCredentialsOverHttp=false \
|
||||
-Djib.pullParentImage=false \
|
||||
@@ -76,7 +89,7 @@ jobs:
|
||||
run: |
|
||||
mvn jib:buildTar \
|
||||
-Djib.to.image=light-delivery-app:${{ github.sha }} \
|
||||
-Djib.allowInsecureRegistries=true \
|
||||
-Djib.allowInsecureRegistries=false \
|
||||
-Djib.httpTimeout=60000 \
|
||||
-Djib.sendCredentialsOverHttp=false \
|
||||
-Djib.pullParentImage=false
|
||||
|
Reference in New Issue
Block a user