-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add periodic rebuild of previous stable versions
- Loading branch information
1 parent
947712a
commit 9877a8a
Showing
1 changed file
with
62 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Docker images from Git tags | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Weekly rebuild of Docker image | ||
- cron: '12 17 * * 4' | ||
|
||
concurrency: | ||
group: tagged-docker-image | ||
cancel-in-progress: true | ||
|
||
env: | ||
AWS_REGION: us-east-1 | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- version: 0.1 | ||
javaVersion: 17.0.9 | ||
nodeVersion: 16.x | ||
epsilonVersion: 2.5.0 | ||
dockerTags: 0.1-epsilon2.5 | ||
- version: 0.1 | ||
javaVersion: 17.0.9 | ||
nodeVersion: 16.x | ||
epsilonVersion: 2.6.0 | ||
epsilonTag: 0.1,0.1-epsilon2.6 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ matrix.version }} | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.javaVersion }} | ||
distribution: 'graalvm' | ||
- name: Set up Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.nodeVersion }} | ||
- name: Install Node dependencies | ||
run: npm ci | ||
working-directory: ./ep-tool-server | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Build with Gradle | ||
run: | | ||
./gradlew build dockerPush -P "epsilonVersion=${{ matrix.epsilonVersion }}" -P "dockerTags=${{ matrix.dockerTags }}" |