mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 08:34:20 +02:00
💚 add workflow
This commit is contained in:
parent
fd5e8f682b
commit
e2381ebf24
20
.github/workflows/build.yml
vendored
Normal file
20
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Build & Deploy to Scaleway
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to Scaleway Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: nologin
|
||||
password: ${{ secrets.SCALEWAY_API_KEY }}
|
||||
registry: ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}
|
||||
- name: Build the Docker image
|
||||
run: docker build . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/fo-prod
|
||||
- name: Push the Docker Image
|
||||
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/fo-prod
|
@ -23,7 +23,7 @@ WORKDIR $project_dir
|
||||
COPY --chown=$user .yarnrc.yml yarn.lock package.json ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY --chown=$user . .
|
||||
COPY --chown=$user . ./
|
||||
|
||||
## Build the app
|
||||
RUN yarn run build
|
||||
|
Loading…
x
Reference in New Issue
Block a user