File tree Expand file tree Collapse file tree 3 files changed +28
-16
lines changed Expand file tree Collapse file tree 3 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : MinaJS Continuous Integration
2
2
on :
3
3
push :
4
- branches :
5
- - main
4
+ branches : [main]
6
5
jobs :
7
6
test :
8
7
name : Test
22
21
- run : bun i --no-save
23
22
- run : bun run build
24
23
- 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)
Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Promote Docker image to latest
2
2
on :
3
3
workflow_dispatch :
4
4
jobs :
5
- dockerize_and_push :
5
+ promote_image :
6
6
name : Tag latest and push to GHCR
7
7
runs-on : ubuntu-latest
8
8
permissions :
You can’t perform that action at this time.
0 commit comments