Skip to content

Commit

Permalink
Merge pull request #15 from celenium-io/test-build
Browse files Browse the repository at this point in the history
Docker image creation actions
  • Loading branch information
GusevPM authored Sep 13, 2024
2 parents 70abf58 + 3cbf2fc commit 35590e7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Push Docker Image

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image
run: |
docker build -t ghcr.io/${{ github.repository }}:${{ github.ref_name }} .
- name: Push Docker Image to GitHub Container Registry
run: |
docker push ghcr.io/${{ github.repository }}:${{ github.ref_name }}
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
version: "3.8"
services:
nuxt-app:
image: ghcr.io/celenium-io/astrotrek-interface:${TAG:-latest}
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
- "127.0.0.1:3000:3000"
environment:
- NUXT_PUBLIC_API_DEV=https://api-dusk-5.astrotrek.io/v1
- NUXT_PUBLIC_WSS_DEV=wss://api-dusk-5.astrotrek.io/v1/ws
- NUXT_PUBLIC_API_DEV=${NUXT_PUBLIC_API_DEV:-https://api-dusk.astrotrek.io/v1}
- NUXT_PUBLIC_WSS_DEV=${NUXT_PUBLIC_WSS_DEV:-wss://api-dusk.astrotrek.io/v1/ws}
restart: always
command: npm run start
logging:
options:
max-size: 10m
max-file: "5"

0 comments on commit 35590e7

Please sign in to comment.