-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build multiplatform images with docker compose build
- Loading branch information
Showing
24 changed files
with
326 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
branches: | ||
- main | ||
- "release/**" | ||
- "docker/**" | ||
paths: | ||
- "Makefile" | ||
- "pom.xml" | ||
|
@@ -22,15 +23,25 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
# Add support for more platforms with QEMU | ||
# https://github.com/docker/setup-qemu-action | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
# https://github.com/docker/setup-buildx-action | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
# Sets up docker build command as an alias to docker buildx | ||
install: true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -47,19 +58,18 @@ jobs: | |
run: | | ||
make install | ||
- name: Build images | ||
- name: Build and push images | ||
run: | | ||
make build-image | ||
- name: Push images | ||
run: | | ||
make push-image | ||
make build-image-multiplatform | ||
- name: Remove project jars from cached repository | ||
run: | | ||
rm -rf ~/.m2/repository/org/geoserver | ||
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | ||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
|
||
- name: Sign images | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REPOSITORY=geoservercloud | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
services: | ||
base-image-jre: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/gs-cloud-base-jre:${TAG} | ||
build: | ||
context: ../src/apps/base-images/jre/ | ||
|
||
base-image-spring-boot: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/gs-cloud-base-spring-boot:${TAG} | ||
depends_on: [base-image-jre] | ||
build: | ||
context: ../src/apps/base-images/spring-boot/ | ||
|
||
base-image-geoserver: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/gs-cloud-base-geoserver-image:${TAG} | ||
depends_on: [base-image-spring-boot] | ||
build: | ||
context: ../src/apps/base-images/geoserver/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
services: | ||
base-image-jre: | ||
image: geoservercloud/gs-cloud-base-jre:${TAG} | ||
extends: | ||
file: templates.yml | ||
service: current-platform | ||
image: ${REPOSITORY}/gs-cloud-base-jre:${TAG} | ||
build: | ||
no_cache: true | ||
pull: true | ||
context: ../src/apps/base-images/jre/ | ||
|
||
base-image-spring-boot: | ||
image: geoservercloud/gs-cloud-base-spring-boot:${TAG} | ||
extends: | ||
file: templates.yml | ||
service: current-platform | ||
image: ${REPOSITORY}/gs-cloud-base-spring-boot:${TAG} | ||
depends_on: [base-image-jre] | ||
build: | ||
no_cache: true | ||
pull: false | ||
context: ../src/apps/base-images/spring-boot/ | ||
args: | ||
TAG: ${TAG} | ||
|
||
base-image-geoserver: | ||
image: geoservercloud/gs-cloud-base-geoserver-image:${TAG} | ||
extends: | ||
file: templates.yml | ||
service: current-platform | ||
image: ${REPOSITORY}/gs-cloud-base-geoserver-image:${TAG} | ||
depends_on: [base-image-spring-boot] | ||
build: | ||
no_cache: true | ||
pull: false | ||
context: ../src/apps/base-images/geoserver/ | ||
args: | ||
TAG: ${TAG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
services: | ||
wfs: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-wfs:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/wfs/ | ||
|
||
wms: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-wms:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/wms/ | ||
|
||
wcs: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-wcs:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/wcs/ | ||
|
||
wps: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-wps:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/wps/ | ||
|
||
rest: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-rest:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/restconfig/ | ||
|
||
webui: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-webui:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/webui/ | ||
|
||
gwc: | ||
extends: | ||
file: templates.yml | ||
service: multi-platform | ||
image: ${REPOSITORY}/geoserver-cloud-gwc:${TAG} | ||
build: | ||
context: ../src/apps/geoserver/gwc/ | ||
|
||
|
Oops, something went wrong.