Skip to content

Commit

Permalink
CI: add periodic rebuild of previous stable versions
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Jan 18, 2025
1 parent 947712a commit 9877a8a
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/dockerFromTags.yml
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 }}"

0 comments on commit 9877a8a

Please sign in to comment.