Skip to content
This repository was archived by the owner on Nov 1, 2025. It is now read-only.

Commit 1a22524

Browse files
committed
okay lets try build-push-docker-manage-ui
1 parent 334a2c8 commit 1a22524

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Build and Push inkeep/agents-manage-ui
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
build-push-docker-manage-ui:
12+
name: Build and Push inkeep/agents-manage-ui
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# 1. Checkout source code
17+
- name: Checkout source code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # Fetches full history for better caching/context
21+
22+
# 2. Set up Docker Buildx
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
26+
# 3. Cache Docker layers
27+
- name: Cache Docker layers
28+
uses: actions/cache@v4
29+
with:
30+
path: /tmp/.buildx-cache
31+
key: ${{ runner.os }}-buildx-${{ github.sha }}
32+
restore-keys: ${{ runner.os }}-buildx-
33+
34+
# 4. Cache pnpm store
35+
- name: Cache pnpm store
36+
uses: actions/cache@v4
37+
with:
38+
path: ~/.pnpm-store
39+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
40+
restore-keys: ${{ runner.os }}-pnpm-
41+
42+
# 5. Set up Node.js and pnpm
43+
- name: Set up Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 22
47+
cache: "pnpm"
48+
49+
- name: Install pnpm
50+
run: npm install -g pnpm@10.17.0
51+
52+
# 6. Extract metadata
53+
- name: Extract metadata
54+
id: meta
55+
run: |
56+
echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> "$GITHUB_OUTPUT"
57+
echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
58+
59+
# 7. Login to Docker Hub
60+
- name: Log in to Docker Hub
61+
uses: docker/login-action@v3
62+
with:
63+
username: ${{ secrets.DOCKER_USERNAME }}
64+
password: ${{ secrets.DOCKERHUB_TOKEN }}
65+
66+
# 8. Build and push image
67+
- name: Build and push production image
68+
uses: docker/build-push-action@v6
69+
with:
70+
context: .
71+
file: Dockerfile.manage-ui
72+
push: true
73+
platforms: linux/amd64,linux/arm64
74+
tags: |
75+
inkeep/agents-manage-ui:latest
76+
inkeep/agents-manage-ui:${{ steps.meta.outputs.SHORT_SHA }}
77+
cache-from: type=local,dest=/tmp/.buildx-cache,mode=max

0 commit comments

Comments
 (0)