chore: deps #265
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
name: inseefrlab/acdc | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
tags: 'develop' |