Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: ci

on:
push:
branches:
- 'stock'
paths:
- package.json
- package-lock.json
- backend/**
- dashboard/**
- shared/**
- Dockerfile
# - docker-compose.standalone.yml
- .github/workflows/**

jobs:
docker:
runs-on: ubuntu-24.04-arm
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: ghcr.io/${{ github.repository }}
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=sha

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max

tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
provenance: mode=max
sbom: true
7 changes: 6 additions & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@
},
"browserslist": [
"last 2 Chrome versions"
]
],
"optionalDependencies": {
"@rollup/rollup-linux-arm64-gnu": "^4.43.0",
"@tailwindcss/oxide-linux-arm64-gnu": "^4.1.10",
"lightningcss-linux-arm64-gnu": "^1.30.1"
}
}
8 changes: 4 additions & 4 deletions docker-compose.standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
- "${STANDALONE_WEB_PORT:?Missing STANDALONE_WEB_PORT}:443"

migrate:
image: dragory/zeppelin
image: ghcr.io/rubyowo/zeppelin:stock
depends_on:
mysql:
condition: service_healthy
Expand All @@ -51,7 +51,7 @@ services:
command: ["npm", "run", "migrate-prod"]

api:
image: dragory/zeppelin
image: ghcr.io/rubyowo/zeppelin:stock
depends_on:
migrate:
condition: service_completed_successfully
Expand All @@ -63,7 +63,7 @@ services:
command: ["npm", "run", "start-api-prod"]

bot:
image: dragory/zeppelin
image: ghcr.io/rubyowo/zeppelin:stock
depends_on:
migrate:
condition: service_completed_successfully
Expand All @@ -75,7 +75,7 @@ services:
command: ["npm", "run", "start-bot-prod"]

dashboard:
image: dragory/zeppelin
image: ghcr.io/rubyowo/zeppelin:stock
depends_on:
migrate:
condition: service_completed_successfully
Expand Down
Loading
Loading