Skip to content

Commit

Permalink
build(app): refactored deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemysław Szymański committed May 6, 2024
1 parent 2b300bf commit 73c90be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish and deploy Docker image

on:
push:
branch: main
release:
types: [published]

Expand Down Expand Up @@ -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 }}"
Expand Down
2 changes: 0 additions & 2 deletions config/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.

0 comments on commit 73c90be

Please sign in to comment.