💚 add workflow

This commit is contained in:
ChatonDeAru 2024-03-24 12:12:06 +01:00
parent fd5e8f682b
commit e2381ebf24
No known key found for this signature in database
GPG Key ID: 3CADF765A409F755
2 changed files with 21 additions and 1 deletions

20
.github/workflows/build.yml vendored Normal file
View 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

View File

@ -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