File tree Expand file tree Collapse file tree 2 files changed +38
-3
lines changed
Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Push Docker Image
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Log in to GitHub Container Registry
17+ uses : docker/login-action@v3
18+ with :
19+ registry : ghcr.io
20+ username : ${{ github.actor }}
21+ password : ${{ secrets.GITHUB_TOKEN }}
22+
23+ - name : Build Docker Image
24+ run : |
25+ docker build -t ghcr.io/${{ github.repository }}:${{ github.ref_name }} .
26+
27+ - name : Push Docker Image to GitHub Container Registry
28+ run : |
29+ docker push ghcr.io/${{ github.repository }}:${{ github.ref_name }}
Original file line number Diff line number Diff line change 11version : " 3.8"
22services :
33 nuxt-app :
4+ image : ghcr.io/celenium-io/astrotrek-interface:${TAG:-latest}
45 build :
56 context : .
67 dockerfile : Dockerfile
78 ports :
8- - " 3000:3000"
9+ - " 127.0.0.1: 3000:3000"
910 environment :
10- - NUXT_PUBLIC_API_DEV=https://api-dusk-5.astrotrek.io/v1
11- - NUXT_PUBLIC_WSS_DEV=wss://api-dusk-5.astrotrek.io/v1/ws
11+ - NUXT_PUBLIC_API_DEV=${NUXT_PUBLIC_API_DEV:-https://api-dusk.astrotrek.io/v1}
12+ - NUXT_PUBLIC_WSS_DEV=${NUXT_PUBLIC_WSS_DEV:-wss://api-dusk.astrotrek.io/v1/ws}
13+ restart : always
1214 command : npm run start
15+ logging :
16+ options :
17+ max-size : 10m
18+ max-file : " 5"
You can’t perform that action at this time.
0 commit comments