-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from celenium-io/test-build
Docker image creation actions
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |