This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1568 from SAP/Runtime-image
Update build workflow
- Loading branch information
Showing
3 changed files
with
28 additions
and
22 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 |
---|---|---|
|
@@ -29,6 +29,8 @@ jobs: | |
uses: docker/setup-buildx-action@v1 | ||
with: | ||
install: true | ||
- name: Set Multi-Builder Docker Buildx | ||
run: docker buildx create --use --name multi-builder --platform linux/arm64,linux/amd64 | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v1 | ||
with: | ||
|
@@ -67,10 +69,10 @@ jobs: | |
run: | | ||
cd releng/sap-kyma-runtime | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-base -f Dockerfile-base . | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime . | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-distro -f Dockerfile-distro . | ||
docker push dirigiblelabs/xsk-kyma-runtime-base | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime . | ||
docker push dirigiblelabs/xsk-kyma-runtime | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-distro -f Dockerfile-distro . | ||
docker push dirigiblelabs/xsk-kyma-runtime-distro | ||
cd ../../ | ||
- uses: buildpacks/github-actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -47,6 +47,8 @@ jobs: | |
uses: docker/setup-buildx-action@v1 | ||
with: | ||
install: true | ||
- name: Set Multi-Builder Docker Buildx | ||
run: docker buildx create --use --name multi-builder --platform linux/arm64,linux/amd64 | ||
- name: Maven Build | ||
run: mvn clean install | ||
- name: Docker Login | ||
|
@@ -75,11 +77,11 @@ jobs: | |
- name: Push XSK for SAP Kyma Runtime | ||
run: | | ||
cd releng/sap-kyma-runtime | ||
docker build -t dirigiblelabs/xsk-kyma-runtime-base -f Dockerfile-base . | ||
docker build -t dirigiblelabs/xsk-kyma-runtime . | ||
docker build -t dirigiblelabs/xsk-kyma-runtime-distro -f Dockerfile-distro . | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-base -f Dockerfile-base . | ||
docker push dirigiblelabs/xsk-kyma-runtime-base | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime . | ||
docker push dirigiblelabs/xsk-kyma-runtime | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-distro -f Dockerfile-distro . | ||
docker push dirigiblelabs/xsk-kyma-runtime-distro | ||
cd ../../ | ||
- uses: buildpacks/github-actions/[email protected] | ||
|
@@ -128,11 +130,11 @@ jobs: | |
- name: XSK Kyma Runtime Buildpack | ||
run: | | ||
cd releng/buildpacks/xsk-kyma-runtime/ | ||
docker build -t dirigiblelabs/buildpacks-stack-base-xsk-kyma-runtime . --target base | ||
docker build --load -t dirigiblelabs/buildpacks-stack-base-xsk-kyma-runtime . --target base | ||
docker push dirigiblelabs/buildpacks-stack-base-xsk-kyma-runtime | ||
docker build -t dirigiblelabs/buildpacks-stack-run-xsk-kyma-runtime . --target run | ||
docker build --load -t dirigiblelabs/buildpacks-stack-run-xsk-kyma-runtime . --target run | ||
docker push dirigiblelabs/buildpacks-stack-run-xsk-kyma-runtime | ||
docker build -t dirigiblelabs/buildpacks-stack-build-xsk-kyma-runtime . --target build | ||
docker build --load -t dirigiblelabs/buildpacks-stack-build-xsk-kyma-runtime . --target build | ||
docker push dirigiblelabs/buildpacks-stack-build-xsk-kyma-runtime | ||
cd buildpack/ | ||
find *.toml -type f -exec sed -i ''s/#{XSKVersion}#/latest/g'' {} \; | ||
|
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 |
---|---|---|
|
@@ -33,6 +33,8 @@ jobs: | |
uses: docker/setup-buildx-action@v1 | ||
with: | ||
install: true | ||
- name: Set Multi-Builder Docker Buildx | ||
run: docker buildx create --use --name multi-builder --platform linux/arm64,linux/amd64 | ||
- name: Maven Build | ||
run: mvn clean install | ||
- name: Docker Login | ||
|
@@ -61,11 +63,11 @@ jobs: | |
- name: Push XSK for SAP Kyma Runtime | ||
run: | | ||
cd releng/sap-kyma-runtime | ||
docker build -t dirigiblelabs/xsk-kyma-runtime-base -f Dockerfile-base . | ||
docker build -t dirigiblelabs/xsk-kyma-runtime . | ||
docker build -t dirigiblelabs/xsk-kyma-runtime-distro -f Dockerfile-distro . | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-base -f Dockerfile-base . | ||
docker push dirigiblelabs/xsk-kyma-runtime-base | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime . | ||
docker push dirigiblelabs/xsk-kyma-runtime | ||
docker build --load -t dirigiblelabs/xsk-kyma-runtime-distro -f Dockerfile-distro . | ||
docker push dirigiblelabs/xsk-kyma-runtime-distro | ||
cd ../../ | ||
- uses: buildpacks/github-actions/[email protected] | ||
|
@@ -113,19 +115,19 @@ jobs: | |
cd ../../../../ | ||
- name: XSK Kyma Runtime Buildpack | ||
run: | | ||
cd releng/buildpacks/xsk-kyma-runtime/ | ||
docker build -t dirigiblelabs/buildpacks-stack-base-xsk-kyma-runtime . --target base | ||
docker push dirigiblelabs/buildpacks-stack-base-xsk-kyma-runtime | ||
docker build -t dirigiblelabs/buildpacks-stack-run-xsk-kyma-runtime . --target run | ||
docker push dirigiblelabs/buildpacks-stack-run-xsk-kyma-runtime | ||
docker build -t dirigiblelabs/buildpacks-stack-build-xsk-kyma-runtime . --target build | ||
docker push dirigiblelabs/buildpacks-stack-build-xsk-kyma-runtime | ||
cd releng/buildpacks/xsk-kyma/ | ||
docker build --load -t dirigiblelabs/buildpacks-stack-base-xsk-kyma . --target base | ||
docker push dirigiblelabs/buildpacks-stack-base-xsk-kyma | ||
docker build --load -t dirigiblelabs/buildpacks-stack-run-xsk-kyma . --target run | ||
docker push dirigiblelabs/buildpacks-stack-run-xsk-kyma | ||
docker build --load -t dirigiblelabs/buildpacks-stack-build-xsk-kyma . --target build | ||
docker push dirigiblelabs/buildpacks-stack-build-xsk-kyma | ||
cd buildpack/ | ||
find *.toml -type f -exec sed -i ''s/#{XSKVersion}#/latest/g'' {} \; | ||
pack buildpack package dirigiblelabs/buildpacks-xsk-kyma-runtime --config ./package.toml | ||
docker push dirigiblelabs/buildpacks-xsk-kyma-runtime | ||
pack builder create dirigiblelabs/buildpacks-builder-xsk-kyma-runtime --config ./builder.toml | ||
docker push dirigiblelabs/buildpacks-builder-xsk-kyma-runtime | ||
pack buildpack package dirigiblelabs/buildpacks-xsk-kyma --config ./package.toml | ||
docker push dirigiblelabs/buildpacks-xsk-kyma | ||
pack builder create dirigiblelabs/buildpacks-builder-xsk-kyma --config ./builder.toml | ||
docker push dirigiblelabs/buildpacks-builder-xsk-kyma | ||
cd ../../../../ | ||
- name: XSK Cloud Foundry Buildpack | ||
run: | | ||
|