Skip to content

Main branch

Main branch #47

Workflow file for this run

name: Main branch
on:
push:
branches: [ "main" ]
schedule:
# Weekly rebuild of Docker image
- cron: '38 11 * * 1'
concurrency:
group: docker-image
cancel-in-progress: true
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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: '17'
distribution: 'temurin'
- name: Set up Node
uses: actions/setup-node@v4.0.2
with:
node-version: '16.x'
- name: Install Node dependencies
run: npm ci
working-directory: ./http-server
- name: Push Docker Image
uses: gradle/gradle-build-action@v3.1.0
with:
arguments: build dockerPush