Skip to content

Commit

Permalink
pull all required images before building
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjsix committed Aug 10, 2023
1 parent dc97c53 commit 41e3da3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
with:
context: ./core/
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
push: true
push: true # push all images built
pull: true # pull all required images before building
tags: softinstigate/restheart-snapshot:${{steps.vars.outputs.SHA}}

- name: Build and Push GraalVM Docker image
Expand All @@ -82,7 +83,8 @@ jobs:
with:
context: ./core/
file: ./core/Dockerfile.graalvm
push: true
push: true # push all images built
pull: true # pull all required images before building
tags: softinstigate/restheart-snapshot:${{steps.vars.outputs.SHA}}-graalvm

- name: Build and Push distroless docker image
Expand All @@ -91,7 +93,8 @@ jobs:
with:
context: ./core/
file: ./core/Dockerfile.distroless
push: true
push: true # push all images built
pull: true # pull all required images before building
tags: softinstigate/restheart-snapshot:${{steps.vars.outputs.SHA}}-distroless

- name: Import private gpg key
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
with:
context: ./core/
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
push: true
push: true # push all images built
pull: true # pull all required images before building
tags: softinstigate/restheart:latest,softinstigate/restheart:7,softinstigate/restheart:7.4,softinstigate/restheart:${{steps.vars.outputs.VERSION}}

- name: Build and Push GraalVM Docker image
Expand All @@ -78,7 +79,8 @@ jobs:
with:
context: ./core/
file: ./core/Dockerfile.graalvm
push: true
push: true # push all images built
pull: true # pull all required images before building
tags: softinstigate/restheart:graalvm,softinstigate/restheart:latest-graalvm,softinstigate/restheart:7-graalvm,softinstigate/restheart:7.4-graalvm,softinstigate/restheart:${{steps.vars.outputs.VERSION}}-graalvm

- name: Build and Push distroless docker image
Expand All @@ -87,7 +89,8 @@ jobs:
with:
context: ./core/
file: ./core/Dockerfile.distroless
push: true
push: true # push all images built
pull: true # pull all required images before building
tags: softinstigate/restheart:distroless,softinstigate/restheart:latest-distroless,softinstigate/restheart:7-distroless,softinstigate/restheart:7.4-distroless,softinstigate/restheart:${{steps.vars.outputs.VERSION}}-distroless

- name: Upload GitHub release
Expand Down

0 comments on commit 41e3da3

Please sign in to comment.