-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (40 loc) · 1 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@v3
- 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@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Node
uses: actions/setup-node@v4.0.0
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@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build dockerPush