Compare commits
12 Commits
384f985a77
...
628c090dfd
| Author | SHA1 | Date | |
|---|---|---|---|
| 628c090dfd | |||
|
|
9fc42b7881 | ||
|
|
ce3ac3dfc0 | ||
|
|
75bc10fe3c | ||
|
|
d821302439 | ||
|
|
8eb116a9a1 | ||
|
|
038ea22068 | ||
|
|
c236059ce1 | ||
|
|
67f8881b3c | ||
|
|
1df4bb15a8 | ||
|
|
ddabcf19d1 | ||
|
|
9c8ceba461 |
@@ -6,6 +6,7 @@ planning
|
|||||||
deploy
|
deploy
|
||||||
infra
|
infra
|
||||||
packages/admin
|
packages/admin
|
||||||
|
!packages/admin/package.json
|
||||||
Dockerfile*
|
Dockerfile*
|
||||||
docker-compose*
|
docker-compose*
|
||||||
*.md
|
*.md
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -45,25 +49,6 @@ jobs:
|
|||||||
")
|
")
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Commit version bump
|
|
||||||
run: |
|
|
||||||
git config user.name "lunarfront-bot"
|
|
||||||
git config user.email "bot@lunarfront.tech"
|
|
||||||
git remote set-url origin https://lunarfront-bot:${{ secrets.BOT_TOKEN }}@git.lunarfront.tech/ryan/lunarfront-app.git
|
|
||||||
git add packages/backend/package.json
|
|
||||||
git commit -m "chore: bump version to v${{ steps.version.outputs.version }}"
|
|
||||||
git push origin main
|
|
||||||
|
|
||||||
- name: Install Docker CLI
|
|
||||||
run: |
|
|
||||||
apt-get update -qq
|
|
||||||
apt-get install -y ca-certificates curl
|
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo $VERSION_CODENAME) stable" > /etc/apt/sources.list.d/docker.list
|
|
||||||
apt-get update -qq
|
|
||||||
apt-get install -y docker-ce-cli
|
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.lunarfront.tech -u ryan --password-stdin
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.lunarfront.tech -u ryan --password-stdin
|
||||||
|
|
||||||
@@ -94,6 +79,16 @@ jobs:
|
|||||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:$SHA
|
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:$SHA
|
||||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:latest
|
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:latest
|
||||||
|
|
||||||
|
- name: Commit version bump
|
||||||
|
run: |
|
||||||
|
git config user.name "lunarfront-bot"
|
||||||
|
git config user.email "bot@lunarfront.tech"
|
||||||
|
git remote set-url origin https://lunarfront-bot:${{ secrets.BOT_TOKEN }}@git.lunarfront.tech/ryan/lunarfront-app.git
|
||||||
|
git add packages/backend/package.json
|
||||||
|
git commit -m "chore: bump version to v${{ steps.version.outputs.version }}"
|
||||||
|
git pull --rebase origin main
|
||||||
|
git push origin main
|
||||||
|
|
||||||
- name: Logout
|
- name: Logout
|
||||||
if: always()
|
if: always()
|
||||||
run: docker logout registry.lunarfront.tech
|
run: docker logout registry.lunarfront.tech
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -32,6 +30,8 @@ jobs:
|
|||||||
e2e:
|
e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: ci
|
needs: ci
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://localhost:2375
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ WORKDIR /app
|
|||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
COPY packages/shared/package.json packages/shared/
|
COPY packages/shared/package.json packages/shared/
|
||||||
COPY packages/backend/package.json packages/backend/
|
COPY packages/backend/package.json packages/backend/
|
||||||
|
COPY packages/admin/package.json packages/admin/
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
FROM oven/bun:1.3.11-alpine AS build
|
FROM oven/bun:1.3.11-alpine AS build
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ WORKDIR /app
|
|||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
COPY packages/shared/package.json packages/shared/
|
COPY packages/shared/package.json packages/shared/
|
||||||
COPY packages/admin/package.json packages/admin/
|
COPY packages/admin/package.json packages/admin/
|
||||||
|
COPY packages/backend/package.json packages/backend/
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
FROM oven/bun:1.3.11-alpine AS build
|
FROM oven/bun:1.3.11-alpine AS build
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ planning
|
|||||||
deploy
|
deploy
|
||||||
infra
|
infra
|
||||||
packages/backend
|
packages/backend
|
||||||
|
!packages/backend/package.json
|
||||||
Dockerfile*
|
Dockerfile*
|
||||||
docker-compose*
|
docker-compose*
|
||||||
*.md
|
*.md
|
||||||
|
|||||||
Reference in New Issue
Block a user