Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
2 changes: 2 additions & 0 deletions .github/workflows/build-test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
SNAPSHOT: ${{ github.event.inputs.snapshot || '' }}
IMAGE_REPO_OPERATON: ${{ vars.IMAGE_REPO_OPERATON }}
IMAGE_REPO_TOMCAT: ${{ vars.IMAGE_REPO_TOMCAT }}
IMAGE_REPO_WILDFLY: ${{ vars.IMAGE_REPO_WILDFLY }}
- name: Test
run: ./test.sh
working-directory: test
Expand All @@ -80,6 +81,7 @@ jobs:
SNAPSHOT: ${{ github.event.inputs.snapshot || '' }}
IMAGE_REPO_OPERATON: ${{ vars.IMAGE_REPO_OPERATON }}
IMAGE_REPO_TOMCAT: ${{ vars.IMAGE_REPO_TOMCAT }}
IMAGE_REPO_WILDFLY: ${{ vars.IMAGE_REPO_WILDFLY }}
publish:
runs-on: ubuntu-24.04
needs: build-and-test
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/pull-request-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
DISTRO: ["run"]
PLATFORM: ["amd64"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: ${{ matrix.PLATFORM != 'amd64' }}
with:
platforms: ${{ matrix.PLATFORM }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Expose GitHub Runtime
uses: actions/github-script@v7
with:
script: |
Object.keys(process.env).forEach(function (key) {
if (key.startsWith('ACTIONS_')) {
core.info(`${key}=${process.env[key]}`);
core.exportVariable(key, process.env[key]);
}
});
- name: Build
run: ./pipeline.sh
env:
DISTRO: ${{ matrix.DISTRO }}
PLATFORM: ${{ matrix.PLATFORM }}
VERSION: 1.0.0-beta-4
SNAPSHOT: false
IMAGE_REPO_OPERATON: ${{ vars.IMAGE_REPO_OPERATON }}
IMAGE_REPO_TOMCAT: ${{ vars.IMAGE_REPO_TOMCAT }}
IMAGE_REPO_WILDFLY: ${{ vars.IMAGE_REPO_WILDFLY }}
- name: Test
run: ./test.sh
working-directory: test
env:
DISTRO: ${{ matrix.DISTRO }}
PLATFORM: ${{ matrix.PLATFORM }}
VERSION: 1.0.0-beta-4
SNAPSHOT: false
IMAGE_REPO_OPERATON: ${{ vars.IMAGE_REPO_OPERATON }}
IMAGE_REPO_TOMCAT: ${{ vars.IMAGE_REPO_TOMCAT }}
IMAGE_REPO_WILDFLY: ${{ vars.IMAGE_REPO_WILDFLY }}
2 changes: 2 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ if [ "$DISTRO" == "run" ]; then
IMAGE_NAME=${IMAGE_REPO_OPERATON}:${PLATFORM}
elif [ "$DISTRO" == "tomcat" ]; then
IMAGE_NAME=${IMAGE_REPO_TOMCAT}:${PLATFORM}
elif [ "$DISTRO" == "wildfly" ]; then
IMAGE_NAME=${IMAGE_REPO_WILDFLY}:${PLATFORM}
fi

export IMAGE_NAME
Expand Down