Skip to content

Commit 35590e7

Browse files
authored
Merge pull request #15 from celenium-io/test-build
Docker image creation actions
2 parents 70abf58 + 3cbf2fc commit 35590e7

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 }}

docker-compose.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
version: "3.8"
22
services:
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"

0 commit comments

Comments
 (0)