Skip to content

Commit f65920d

Browse files
Sai RSai R
authored andcommitted
Add actions file
1 parent 9e0e3bd commit f65920d

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: TOK Build and Push
2+
3+
# on:
4+
# release:
5+
# types: [published]
6+
7+
on:
8+
push:
9+
branches:
10+
- feat/actions # or change to your deployment branch
11+
12+
jobs:
13+
build-and-push:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up QEMU (for emulation)
21+
uses: docker/setup-qemu-action@v3
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
with:
26+
buildkitd-flags: --allow-insecure-entitlement security.insecure
27+
28+
- name: Log in to Docker Hub
29+
uses: docker/login-action@v3
30+
with:
31+
username: ${{ secrets.DOCKER_USERNAME }}
32+
password: ${{ secrets.DOCKER_PASSWORD }}
33+
34+
- name: Build and push multi-arch image
35+
uses: docker/build-push-action@v5
36+
with:
37+
context: .
38+
push: true
39+
platforms: linux/amd64,linux/arm/v7,linux/arm64
40+
# tags: sai3010/typesense-operator:${{ github.event.release.tag_name }}
41+
tags: sai3010/typesense-operator:1.1

0 commit comments

Comments
 (0)