Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Oct 9, 2024
1 parent 137e971 commit ea23357
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Release
on:
release:
types: [created]
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- documentation/**
- feat/docker
jobs:
build:
name: Test & Build & Upload artifact
Expand Down Expand Up @@ -47,4 +45,13 @@ jobs:
push: true
file: Dockerfile
tags: inseefr/bauhaus:${{ env.VERSION }}

- name: Build and push
uses: docker/build-push-action@v4
run: echo "VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
with:
push: true
file: Dockerfile
tags: inseefr/bauhaus-ssm:${{ env.VERSION }}
build-args: |
VITE_CONCEPTS_DOCUMENTATION=http://google.fr
VITE_OPERATIONS_DOCUMENTATION=https://emmanueldemey.dev
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Étape de construction
FROM node:latest as builder

ARG VITE_CONCEPTS_DOCUMENTATION
ARG VITE_OPERATIONS_DOCUMENTATION

ENV VITE_CONCEPTS_DOCUMENTATION=$VITE_CONCEPTS_DOCUMENTATION
ENV VITE_OPERATIONS_DOCUMENTATION=$VITE_OPERATIONS_DOCUMENTATION

RUN echo $VITE_CONCEPTS_DOCUMENTATION
RUN echo $VITE_OPERATIONS_DOCUMENTATION

WORKDIR /bauhaus

COPY ./ ./
Expand Down

0 comments on commit ea23357

Please sign in to comment.