Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1568 from SAP/Runtime-image
Browse files Browse the repository at this point in the history
Update build workflow
  • Loading branch information
ThuF authored Apr 26, 2022
2 parents 4134fd2 + 7d89aaa commit 3e197f2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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'' {} \;
Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3e197f2

Please sign in to comment.