Skip to content

Commit 663a5d3

Browse files
committed
chore(repo): move dockerization to manual run
1 parent 39b58a9 commit 663a5d3

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: MinaJS Continuous Integration
22
on:
33
push:
4-
branches:
5-
- main
4+
branches: [main]
65
jobs:
76
test:
87
name: Test
@@ -22,16 +21,3 @@ jobs:
2221
- run: bun i --no-save
2322
- run: bun run build
2423
- run: bunx pkg-pr-new publish './packages/klesia-sdk'
25-
- name: Login to GitHub Container Registry
26-
uses: docker/login-action@v3
27-
with:
28-
registry: ghcr.io
29-
username: ${{ github.actor }}
30-
password: ${{ secrets.GITHUB_TOKEN }}
31-
- name: Build and push Docker images
32-
uses: iloveitaly/github-action-nixpacks@main
33-
with:
34-
context: ". --config apps/klesia/nixpacks.toml"
35-
platforms: "linux/amd64,linux/arm64"
36-
push: true
37-
tags: ghcr.io/palladians/klesia:$(git rev-parse --short HEAD)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dockerize Klesia
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
dockerize_and_push:
6+
name: Dockerize Klesia and push to GHCR
7+
runs-on: ubuntu-latest
8+
permissions:
9+
packages: write
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set Docker tag
13+
run: echo "IMAGE_STAMP=ghcr.io/palladians/klesia:$(git rev-parse --short HEAD)" > "$GITHUB_ENV"
14+
- name: Login to GitHub Container Registry
15+
uses: docker/login-action@v3
16+
with:
17+
registry: ghcr.io
18+
username: ${{ github.actor }}
19+
password: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Build and push Docker images
21+
uses: iloveitaly/github-action-nixpacks@main
22+
with:
23+
context: ". --config apps/klesia/nixpacks.toml"
24+
platforms: "linux/amd64,linux/arm64"
25+
push: true
26+
tags: ghcr.io/palladians/klesia:${{ env.IMAGE_STAMP }}

.github/workflows/promote_image.yml renamed to .github/workflows/klesia_promote.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Promote Docker image to latest
22
on:
33
workflow_dispatch:
44
jobs:
5-
dockerize_and_push:
5+
promote_image:
66
name: Tag latest and push to GHCR
77
runs-on: ubuntu-latest
88
permissions:

0 commit comments

Comments
 (0)