migrated actions
Some checks failed
Build
Deploy

This commit is contained in:
Xeovalyte 2023-04-02 17:41:30 +02:00
parent e1ed3d53db
commit d6e81e47f4
4 changed files with 39 additions and 18 deletions

34
.gitea/workflows/ci.yml Normal file
View File

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

View File

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

View File

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

View File

@ -39,3 +39,6 @@
</div>
</section>
</template>
<script setup>
</script>