-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.09 KB
/
docker-image.yml
File metadata and controls
40 lines (36 loc) · 1.09 KB
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
name: Docker Image CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
# install applicaion dependencies (force for MUI)
- name: Install dependencies
run: |
npm install --force
# build and test the apps (temp env variable for API_BASE_URL as there is no need)
- name: build
run: |
npm run build --noEmitOnErrorx
env:
VITE_API_BASE_URL: 'https://acdc-back-office.demo.insee.io/'
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: inseefrlab/acdc
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
tags: 'develop'