Skip to content

Commit

Permalink
Updated guide tags (#982)
Browse files Browse the repository at this point in the history
* Rebuild staging site

* Rebuild staging site

* Create ol-icr-full-docker-pull.adoc

* Create ol-icr-kernel-docker-pull.adoc

* Update guide_tags.json

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update cloud-hosted-guides.json (#760)

* Update guide_tags.json

* Update pre-daily-build.yml (#762)

* Update cloud-hosted-guides.json

* Update guide_tags.json

* Rebuild staging site

* update the cloud-hosted-guide.json and the tags.json (#766)

* Update cloud-hosted-guides.json

* Update guide_tags.json

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update cloud-hosted-guides.json

* Update guide_tags.json

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* commented out hashcode check (#771)

* commented out hashcode check

* Update sun_checks.xml

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>
Co-authored-by: Rutav Shah <Rutav.Shah@ibm.com>

* Rebuild staging site

* Create skills-network-kube-setup.adoc

* Update skills-network-kube-setup.adoc

* Update twyb-end.adoc

* Update adoc files (#778)

* Update twyb-intro.adoc

* Update devmode-lmp33-start-cd.adoc

* Update devmode-lmp33-start.adoc

* Update devmode-quit.adoc

* Update devmode-start-cd.adoc

* Update devmode-start.adoc

* Update mvnbuild.adoc

* Update gitclone.adoc (#781)

* Rebuild staging site

* Rebuild staging site

* Update guide_categories.json (#785)

* Gkwan ibm patch 6 (#787)

* Update checker.py

* Update checker.py

* Update checker.py

* Update checker.py (#789)

* Update checker.py (#791)

* Rebuild staging site

* Rebuild staging site

* Publish 2 new guides (#795)

* Update guide_categories.json

* Update guide_tags.json

* Rebuild staging site

* Update cloud-hosted-guides.json (#797)

* Update cloud-hosted-guides.json

* Update guide_tags.json

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update guide_tags.json

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update cloud-hosted-guides.json (#810)

* Rebuild staging site

* Rebuild staging site

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Rebuild staging site

* Rebuild staging site

* Update cloud-hosted-guides.json (#820)

* Rebuild staging site

* Rebuild staging site

* Update guide_tags.json (#822)

* Rebuild staging site

* Update guide-redirects.properties (#825)

* Tgupta md (#829)

* updated contributing.md

* updated .md file

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update guide_categories.json (#841)

* Update docker-guides.json (#845)

* Update docker-guides.json (#847)

* Rebuild staging site

* Update cloud-hosted-guides.json

* Rebuild staging site

* Update the contribution requirement (#853)

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

Co-authored-by: David Mueller <48686014+dmuelle@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: David Mueller <48686014+dmuelle@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: David Mueller <48686014+dmuelle@users.noreply.github.com>

Co-authored-by: YK Chang <yeekangc@ca.ibm.com>
Co-authored-by: David Mueller <48686014+dmuelle@users.noreply.github.com>

* Update checker.sh (#857)

* Update CONTRIBUTING.md (#859)

* Rebuild staging site

* Update guide_categories.json

* Rebuild staging site

* Update drafts-to-test.json

* Create add-to-projects.yml

* Update add-to-projects.yml

* Update add-to-projects.yml

* Update add-to-projects.yml

* Update add-to-projects.yml

* Update add-to-projects.yml

* Update add-to-projects.yml

* Update daily-build.yml (#875)

* Update guide_categories.json (#877)

* Update guide_categories.json

* Update guide_tags.json

* Rebuild staging site

* Update drafts-to-test.json

* Update pre-daily-build.yml

* Adding guide-jakarta-websocket (#882)

* Update cloud-hosted-guides.json

* Update copyright headers (#883)

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>

* Update cloud-hosted-guides.json

* Update LICENSE (#885)

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>

* Adding GRPC-intro guide to cloud-hosted json (#887)

* Adding GRPC intro

* Update cloud-hosted-guides.json

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update pre-daily-build.yml (#898)

* Update daily-build.yml (#901)

* Update daily-build.yml (#903)

* Rebuild staging site

* Update guide_prereqs.json

* Rebuild staging site

* Update daily-build.yml

* Update daily-build.yml

* Rebuild staging site

* support podman (#912)

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Rebuild staging site

* Update the term "dev mode" (#925)

* Update devmode-lmp33-start-cd.adoc

address issue #922

* Update devmode-lmp33-start.adoc

* Update devmode-start-cd.adoc

* Update devmode-start.adoc

* Rebuild staging site

* Create trigger-pre-daily-build.yml

manually trigger pre-build for a build level

* Update trigger-pre-daily-build.yml

* Create trigger-pre-daily-build.yml (#932)

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml (#934)

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update trigger-pre-daily-build.yml

* Update pre-daily-build.yml

* Deprecated guides test (#936)

* remove redirects for dev

* test deprecated tag

* make tag visible

* hide deprecated tag

* new tag edits

* small change

* rename deprecated tag attribute

* using date

* remove date

* multiple deprecated guide test

* test empty deprecated tag

* add back examples

* remove date field

* test with missing details

* reorganize dep tag

* test

* Update guide-redirects.properties and guide_tags.json (#937)

* Update guide-redirects.properties

* Update guide_tags.json

* Update guide_tags.json

---------

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>

* Test empty deprecated tag on staging (#939)

* remove redirects for dev

* test deprecated tag

* make tag visible

* hide deprecated tag

* new tag edits

* small change

* rename deprecated tag attribute

* using date

* remove date

* multiple deprecated guide test

* test empty deprecated tag

* add back examples

* remove date field

* test with missing details

* reorganize dep tag

* test

* Update guide-redirects.properties and guide_tags.json (#937)

* Update guide-redirects.properties

* Update guide_tags.json

* Update guide_tags.json

* Update guide_tags.json

empty deprecated tag to add to prod guide_tags

---------

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>

* Publish new microprofile-telemetry-jaeger guide (#945)

* Deploy new microprofile-telemetry-jaeger guide

Update guide_categories.json

* Update guide_tags.json

* Update cloud-hosted-guides.json

* Update guide_tags.json

* Update guide_tags.json

* Rebuild staging site

* Rebuild staging site

* Change server to runtime or instance (#949)

* Update devmode-build.adoc

* Update devmode-start-cd.adoc

* Update devmode-start.adoc

* Update devmode-lmp33-start-cd.adoc

* Update devmode-lmp33-start.adoc

* Update mvncompile.adoc

* Update trywhatyoubuild-end.adoc

* Update twyb-intro.adoc

* Update devmode-quit.adoc (#951)

* Rebuild staging site

* Update twyb-end.adoc (#952)

* Update twyb-end.adoc

* Rebuild staging site

* Rebuild staging site

* Deprecate the okd guide (#957)

* Update guide_tags.json

* Update guide_categories.json

* Rebuild staging site

* Update pre-daily-build.yml (#959)

* upload logs if test fail (#964)

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Update daily-build.yml

* Rebuild staging site

* Create sun_check_skip_header.xml (#967)

* Create devmode-quit-ctrlc.adoc

* Rebuild staging site

* Update get-repos.py (#972)

* add daily build java17 action (#975)

* Update daily-build.yml

* Update daily-build-java17.yml

* Updated tags

* Updated guide tags

---------

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>
Co-authored-by: rutavshah <33077901+rutavshah@users.noreply.github.com>
Co-authored-by: Rutav Shah <Rutav.Shah@ibm.com>
Co-authored-by: t27gupta <47546702+t27gupta@users.noreply.github.com>
Co-authored-by: Jakub Pomykala <jakub.pomykala@hotmail.co.uk>
Co-authored-by: YK Chang <yeekangc@ca.ibm.com>
Co-authored-by: David Mueller <48686014+dmuelle@users.noreply.github.com>
Co-authored-by: ReeceNana <93201294+ReeceNana@users.noreply.github.com>
Co-authored-by: Morgan Chang <shin19991207@gmail.com>
Co-authored-by: jakub-pomykala <56261244+jakub-pomykala@users.noreply.github.com>
Co-authored-by: natalie-bernhard <84740311+natalie-bernhard@users.noreply.github.com>
  • Loading branch information
12 people authored Nov 8, 2023
1 parent 1e70863 commit ec74773
Show file tree
Hide file tree
Showing 16 changed files with 565 additions and 52 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/add-to-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Add issues to Liberty guides backlog project

on:
issues:
types:
- opened
- transferred

jobs:
add-to-project:
name: Add issue to backlog
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/OpenLiberty/projects/11
github-token: ${{ secrets.ADMIN_BACKLOG }}
157 changes: 157 additions & 0 deletions .github/workflows/daily-build-java17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
name: Daily build testing - Java 17

on:
repository_dispatch:
types: [ daily-build-java17 ]
workflow_dispatch:
inputs:
build:
description: Build level
required: true
date:
description: Dev date
required: true
driver:
description: Driver location
required: true
guide:
description: Guide to build
default: "all"
required: true
branch:
description: Branch to test
required: false

env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
CHANGE_MINIKUBE_NONE_USER: true

jobs:
get-guide-repos:
runs-on: ubuntu-latest
outputs:
repos: ${{ steps.create-list.outputs.repos }}${{ steps.input-guide.outputs.repo }}
steps:
- uses: actions/checkout@v2
- name: Get default repos
if: ${{ github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' && github.event.inputs.guide == 'all' }}
id: create-list
run: echo "repos=[ 'guide-spring-boot' ]" >> $GITHUB_OUTPUT
- name: Set input repo
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.guide != 'all' }}
id: input-guide
run: echo "repo=[ '${{ github.event.inputs.guide }}' ]" >> $GITHUB_OUTPUT
build-level:
runs-on: ubuntu-latest
steps:
- name: Starting daily build tests for ${{ github.event.client_payload.build-level }}${{ github.event.inputs.build }}
run: |
echo "Inputs: "
echo build: ${{ github.event.inputs.build }}
echo date: ${{ github.event.inputs.date }}
echo driver: ${{ github.event.inputs.driver }}
echo guide: ${{ github.event.inputs.guide }}
echo branch: ${{ github.event.inputs.branch }}
echo jdk_level: 17
echo "Build level: ${{ github.event.client_payload.build-level }}${{ github.event.inputs.build }}"
test-guide:
needs: [ get-guide-repos ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
repos: ${{ fromJson(needs.get-guide-repos.outputs.repos) }}
jdk: [ "17" ]
steps:
- name: Setup JDK ${{ matrix.jdk }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Clone ${{ matrix.repos }}
uses: actions/checkout@v2
with:
repository: OpenLiberty/${{ matrix.repos }}
ref: ${{ github.event.inputs.branch }}
path: ${{ matrix.repos }}
- name: Set permissions
run: chmod +x ${{ matrix.repos }}/scripts/*.sh
- name: Docker login for runner
run: |
if [ "${{ matrix.repos }}" = "guide-liberty-deep-dive-gradle" ]
then
echo podman login
echo $DOCKER_PASSWORD | podman login docker.io -u $DOCKER_USERNAME --password-stdin
else
echo docker login
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
fi
- name: Docker login for root
run: |
if [ "${{ matrix.repos }}" = "guide-liberty-deep-dive-gradle" ]
then
echo podman login
echo $DOCKER_PASSWORD | sudo podman login docker.io -u $DOCKER_USERNAME --password-stdin
else
echo docker login
echo $DOCKER_PASSWORD | sudo docker login -u $DOCKER_USERNAME --password-stdin
fi
- name: Run tests for ${{ matrix.repos }}
working-directory: ${{ matrix.repos }}/finish
env:
BUILDLEVEL: ${{ github.event.client_payload.build-level }}${{ github.event.inputs.build }}
DEVDATE: ${{ github.event.client_payload.dev-date }}${{ github.event.inputs.date }}
DRIVER: ${{ github.event.client_payload.driver-location }}${{ github.event.inputs.driver }}
run: sudo -E ../scripts/dailyBuild.sh -t $DEVDATE -d $DRIVER -b $BUILDLEVEL -u $DOCKER_USERNAME -j ${{ matrix.jdk }}
- name: Post tests
working-directory: ${{ matrix.repos }}
if: always()
run: |
mvn -version
sudo chmod -R 777 .
logsPath=$(sudo find . -name "console.log");
if [ -z "$logsPath" ]
then
logsPath=$(sudo find . -name "messages.log");
if [ -z "$logsPath" ]
then sudo docker images
else
sudo cat $logsPath | grep product
sudo cat $logsPath | grep java.runtime
fi
else sudo cat $logsPath | grep Launching
fi
- name: Archive server logs if failed
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.repos }}-logs
path: |
${{ matrix.repos }}/finish/target/liberty/wlp/usr/servers/defaultServer/logs/
${{ matrix.repos }}/start/target/liberty/wlp/usr/servers/defaultServer/logs/
${{ matrix.repos }}/finish/**/target/liberty/wlp/usr/servers/defaultServer/logs/
${{ matrix.repos }}/start/**/target/liberty/wlp/usr/servers/defaultServer/logs/
if-no-files-found: ignore
- name: Archive npm logs if failed
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.repos }}-npm-logs
path: ~/.npm/_logs
if-no-files-found: ignore
slack-alert:
needs: [test-guide]
if: failure()
runs-on: ubuntu-latest
env:
BUILDLEVEL: ${{ github.event.client_payload.build-level }}${{ github.event.inputs.build }}
DEVDATE: ${{ github.event.client_payload.dev-date }}${{ github.event.inputs.date }}
DRIVER: ${{ github.event.client_payload.driver-location }}${{ github.event.inputs.driver }}
steps:
- uses: actions/checkout@v2
- name: send-status
run: |
python3 .github/workflows/slack-alert.py ${{ env.BUILDLEVEL }} ${{ env.DRIVER }} ${{ env.DEVDATE }} ${{ needs.test-guide.result }} \
${{ github.repository }} ${{ github.run_id }} ${{ secrets.SLACK_HOOK }}
echo ${{ needs.test-guide.result }}
40 changes: 35 additions & 5 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,25 @@ jobs:
- name: Set permissions
run: chmod +x ${{ matrix.repos }}/scripts/*.sh
- name: Docker login for runner
run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
run: |
if [ "${{ matrix.repos }}" = "guide-liberty-deep-dive-gradle" ]
then
echo podman login
echo $DOCKER_PASSWORD | podman login docker.io -u $DOCKER_USERNAME --password-stdin
else
echo docker login
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
fi
- name: Docker login for root
run: echo $DOCKER_PASSWORD | sudo docker login -u $DOCKER_USERNAME --password-stdin
run: |
if [ "${{ matrix.repos }}" = "guide-liberty-deep-dive-gradle" ]
then
echo podman login
echo $DOCKER_PASSWORD | sudo podman login docker.io -u $DOCKER_USERNAME --password-stdin
else
echo docker login
echo $DOCKER_PASSWORD | sudo docker login -u $DOCKER_USERNAME --password-stdin
fi
- name: Run tests for ${{ matrix.repos }}
working-directory: ${{ matrix.repos }}/finish
env:
Expand All @@ -96,6 +112,8 @@ jobs:
working-directory: ${{ matrix.repos }}
if: always()
run: |
mvn -version
sudo chmod -R 777 .
logsPath=$(sudo find . -name "console.log");
if [ -z "$logsPath" ]
then
Expand All @@ -110,10 +128,22 @@ jobs:
fi
- name: Archive server logs if failed
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.repos }}-logs
path: |
${{ matrix.repos }}/finish/target/liberty/wlp/usr/servers/defaultServer/logs/
${{ matrix.repos }}/start/target/liberty/wlp/usr/servers/defaultServer/logs/
${{ matrix.repos }}/finish/**/target/liberty/wlp/usr/servers/defaultServer/logs/
${{ matrix.repos }}/start/**/target/liberty/wlp/usr/servers/defaultServer/logs/
if-no-files-found: ignore
- name: Archive npm logs if failed
if: failure()
uses: actions/upload-artifact@v3
with:
name: server-logs
path: ${{ matrix.repos }}/finish/target/liberty/wlp/usr/servers/defaultServer/logs/
name: ${{ matrix.repos }}-npm-logs
path: ~/.npm/_logs
if-no-files-found: ignore
slack-alert:
needs: [test-guide]
if: failure()
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/get-repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

BASE_REPO_URL = "https://api.github.com/orgs/OpenLiberty/repos"
JSON_PATH = ".github/workflows/drafts-to-test.json"

DEPRECATED = [ "guide-okd" ]
HEADERS = {
"Accept": "application/vnd.github.v3+json"
}
Expand All @@ -27,7 +27,8 @@ def published_guide_name(name):
for repo in r.json():
repo_name = repo["name"]
if published_guide_name(repo_name):
output.append(repo_name)
if repo_name not in DEPRECATED:
output.append(repo_name)

drafts = json.load(open(JSON_PATH))
output += drafts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.get-builds.outputs.matrix) }}
env:
DHE_URL: http://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly
DHE_URL: https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly
steps:
- name: Clone ci.docker repository
uses: actions/checkout@v2
Expand All @@ -59,11 +59,11 @@ jobs:
- name: Build Docker image for ${{ matrix.builds.date }}
run: |
cd ci.docker/releases/latest/full
sed -i '/&& wget -q \$LIBERTY_DOWNLOAD_URL/c\&& wget '$DHE_URL'/'${{ matrix.builds.date }}'/'${{ matrix.builds.driver_location }}' -U UA-Open-Liberty-Docker -O /tmp/wlp.zip \\' Dockerfile.ubi.openjdk11
sed -i "s;wget -q \$LIBERTY_DOWNLOAD_URL;wget $DHE_URL/${{ matrix.builds.date }}/${{ matrix.builds.driver_location }};g" Dockerfile.ubi.openjdk11
sed -i '/&& sha1sum/d' Dockerfile.ubi.openjdk11
cat Dockerfile.ubi.openjdk11
echo "Building ${{ matrix.builds.build_level }} from ${{ matrix.builds.date }}"
docker build --build-arg LIBERTY_LICENSE_SHA=$LIBERTY_LICENSE_SHA -q -t $DOCKER_USERNAME/olguides:${{ matrix.builds.build_level }} -f Dockerfile.ubi.openjdk11 .
docker build -q -t $DOCKER_USERNAME/olguides:${{ matrix.builds.build_level }} -f Dockerfile.ubi.openjdk11 .
docker push $DOCKER_USERNAME/olguides:${{ matrix.builds.build_level }}
trigger-builds:
runs-on: ubuntu-latest
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/trigger-pre-daily-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Manual Pre-Daily Build Action

on:
workflow_dispatch:
inputs:
date:
description: Dev date as 2023-07-11_0401
required: true
build_level:
description: Build level as cl230720230711-0401
required: true
driver_location:
description: Driver location like openliberty-all-23.0.0.7-cl230720230711-0401.zip
required: true

env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
LIBERTY_LICENSE_SHA: ${{ secrets.LIBERTY_LICENSE_SHA }}

jobs:
build-docker-image:
runs-on: ubuntu-latest
env:
DHE_URL: https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly
steps:
- name: Clone ci.docker repository
uses: actions/checkout@v2
with:
repository: OpenLiberty/ci.docker
path: ci.docker
- name: Docker login
run: echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- name: Build Docker image for ${{ github.event.inputs.date }}
run: |
cd ci.docker/releases/latest/full
sed -i "s;wget -q \$LIBERTY_DOWNLOAD_URL;wget $DHE_URL/${{ github.event.inputs.date }}/${{ github.event.inputs.driver_location }};g" Dockerfile.ubi.openjdk11
sed -i '/&& sha1sum/d' Dockerfile.ubi.openjdk11
cat Dockerfile.ubi.openjdk11
echo "Building ${{ github.event.inputs.build_level }} from ${{ github.event.inputs.date }}"
docker build --build-arg LIBERTY_LICENSE_SHA=$LIBERTY_LICENSE_SHA -q -t $DOCKER_USERNAME/olguides:${{ github.event.inputs.build_level }} -f Dockerfile.ubi.openjdk11 .
docker push $DOCKER_USERNAME/olguides:${{ github.event.inputs.build_level }}
trigger-builds:
runs-on: ubuntu-latest
needs: [ build-docker-image ]
env:
GH_TOKEN: ${{ secrets.ADMIN_TOKEN }}
URI: "https://api.github.com/repos/OpenLiberty/guides-common/dispatches"
ACCEPT_HEADER: "application/vnd.github.v3+json"
CONTENT_TYPE: "application/json"
PAYLOAD: '{ "dev-date": "${{ github.event.inputs.date }}", "driver-location": "${{ github.event.inputs.driver_location }}", "build-level": "${{ github.event.inputs.build_level }}", "jdk": "11" }'
steps:
- name: Trigger daily builds
run: |
curl -H "Accept: $ACCEPT_HEADER" \
-H "Authorization: token $GH_TOKEN" \
-d "{ \"event_type\": \"daily-build\", \"client_payload\": $PAYLOAD }" \
-X POST $URI
- name: Trigger Docker image tests
run: |
docker pull "openliberty/daily:latest" -q
IMAGEBUILDLEVEL=$(docker inspect --format "{{ index .Config.Labels \"org.opencontainers.image.revision\"}}" openliberty/daily:latest)
echo $IMAGEBUILDLEVEL
if [ $IMAGEBUILDLEVEL == ${{ github.event.inputs.build_level }} ]
then
curl -H "Accept: $ACCEPT_HEADER" \
-H "Authorization: token $GH_TOKEN" \
-d "{ \"event_type\": \"docker-image-test\", \"client_payload\": $PAYLOAD }" \
-X POST $URI
fi
2 changes: 1 addition & 1 deletion cloud-hosted-guides.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"containerize", "microprofile-rest-client", "kubernetes-intro", "microprofile-health", "microprofile-jwt",
"cdi-intro", "microshed-testing", "docker",
"microprofile-config", "microprofile-fallback", "microprofile-metrics", "microprofile-opentracing", "microprofile-opentracing-jaeger",
"microprofile-reactive-messaging", "reactive-service-testing", "microprofile-reactive-messaging-acknowledgment", "microprofile-reactive-messaging-rest-integration"
"microprofile-reactive-messaging", "reactive-service-testing", "microprofile-reactive-messaging-acknowledgment", "microprofile-reactive-messaging-rest-integration"
],
"skillNetworkDomain": "https://openliberty.skillsnetwork.site",
"stagingSkillNetworkDomain": "https://ol-staging.skillsnetwork.site",
Expand Down
Loading

0 comments on commit ec74773

Please sign in to comment.