Skip to content

Commit ee5e630

Browse files
committed
add docker into CICD
1 parent 551fbbb commit ee5e630

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Docker Image
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-push:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
18+
- name: Log in to GHCR
19+
uses: docker/login-action@v3
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GHCR_PACKAGE_PAT }}
24+
25+
- name: Build and push Docker image
26+
run: |
27+
docker buildx build --platform linux/amd64,linux/arm64 \
28+
--tag ghcr.io/camel-ai/camel:${{ github.ref_name }} \
29+
--sbom=false --provenance=false \
30+
--push .

0 commit comments

Comments
 (0)