diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..9ec5bc7 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Build and Deploy +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Nodejs + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm install + - run: npm run build + + Deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: docker/login-action@v2 + with: + registry: gitea.xeovalyte.dev + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - uses: docker/setup-buildx-action@v2 + with: + platforms: linux/amd64,linux/arm/v8 + - uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ secrets.DOCKER_USERNAME}}/portfolio:latest diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index fa6e1c8..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,13 +0,0 @@ -pipeline: - publish: - image: plugins/docker - secrets: - - docker_password - settings: - username: xeovalyte - password: - from_secret: docker_password - repo: gitea.xeovalyte.dev/xeovalyte/portfolio - tags: - - latest - registry: gitea.xeovalyte.dev diff --git a/Dockerfile b/Dockerfile index 865463a..9b3dcbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,8 @@ FROM node:18 WORKDIR /usr/src/app -COPY . . - -RUN npm install -RUN npm run build +COPY .output . EXPOSE 3000 -CMD [ "node", ".output/server/index.mjs" ] +CMD [ "node", "server/index.mjs" ] diff --git a/components/slides/Heading.vue b/components/slides/Heading.vue index f7ac861..b640648 100644 --- a/components/slides/Heading.vue +++ b/components/slides/Heading.vue @@ -39,3 +39,6 @@ + +