From 330c17962ef0a90f89c4ebb45b9ee35118626317 Mon Sep 17 00:00:00 2001 From: ChatonDeAru <823314+chatondearu@users.noreply.github.com> Date: Sun, 24 Mar 2024 12:12:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20add=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 20 ++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7fd160a --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index e898ba4..5436cad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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