-
-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (53 loc) · 1.74 KB
/
generator.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
45
46
47
48
49
50
51
52
53
name: JHipster Svelte Generator
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
generator-jhipster-svelte:
concurrency:
group: generator-${{ matrix.node_version }}-${{ matrix.apps }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
node_version: [16.16]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- run: npm ci
- run: npm run lint
publish-docker-image:
if: ${{ !github.head_ref }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout JHipster Svelte generator repository
uses: actions/checkout@v3
- uses: docker/metadata-action@v3
id: meta
with:
images: jhipster/jhipster-svelte
tags: |
type=ref,event=branch
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push JHipster Svelte main branch image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}