create-docker #2
21
.gitea/workflows/test-self.yaml
Normal file
21
.gitea/workflows/test-self.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [develop]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: self-hosted
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /home/raysam/act-runner-host/repo
|
||||||
|
steps:
|
||||||
|
- run: git --version
|
||||||
|
- run: rm -rf fuware-fe
|
||||||
|
- run: git clone ssh://git@thamluu.synology.me:222/sam/fuware-fe.git fuware-fe
|
||||||
|
- name: run docker
|
||||||
|
working-directory: /home/raysam/act-runner-host/repo/fuware-fe
|
||||||
|
run: docker compose up --build -d
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
@ -1,14 +1,13 @@
|
|||||||
services:
|
services:
|
||||||
fuware:
|
fuware:
|
||||||
container_name: fuware-fe
|
container_name: fuware-fe
|
||||||
image: fuware-fe:dev
|
image: fuware-fe
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ../
|
||||||
target: production
|
target: production
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 16001:3000
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: 'production'
|
NODE_ENV: 'production'
|
||||||
VITE_LOGIN_KEY: '7fo24CMyIc'
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user