From 73c90be9f7a310556720934ab01ed1772c12e79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Szyma=C5=84ski?= Date: Mon, 6 May 2024 10:53:35 +0200 Subject: [PATCH] build(app): refactored deployment script --- .github/workflows/deploy.yml | 4 +++- config/app/Dockerfile | 2 -- docker-compose.yml => docker-compose.disabled.yml | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename docker-compose.yml => docker-compose.disabled.yml (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 00856c8..d98a6b8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,8 @@ name: Publish and deploy Docker image on: + push: + branch: main release: types: [published] @@ -42,7 +44,7 @@ jobs: context: ./config/app file: ./config/app/Dockerfile platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} + tags: "ghcr.io/${{ github.repository }}:latest" labels: ${{ steps.meta.outputs.labels }} build-args: | "NUXT_MAIL_URL=${{ secrets.MAIL_URL }}" diff --git a/config/app/Dockerfile b/config/app/Dockerfile index 77b3ca8..ea6ad65 100644 --- a/config/app/Dockerfile +++ b/config/app/Dockerfile @@ -10,8 +10,6 @@ ENV NUXT_MAIL_URL ${NUXT_MAIL_URL} WORKDIR /var/www/html/tournament-app -COPY . . - RUN npm install RUN npm run build diff --git a/docker-compose.yml b/docker-compose.disabled.yml similarity index 100% rename from docker-compose.yml rename to docker-compose.disabled.yml