Skip to content

Commit 976defa

Browse files
committed
[OPB-xxx] adding docker and helm build to build job
1 parent 96d5ca0 commit 976defa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,23 @@ jobs:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
user: Sheldan
3333
token: ${{ secrets.ABSTRACTO_PAT }}
34+
- name: Login to Harbor
35+
uses: docker/login-action@v3
36+
with:
37+
registry: harbor.sheldan.dev
38+
username: ${{ secrets.HARBOR_USERNAME }}
39+
password: ${{ secrets.HARBOR_TOKEN }}
40+
- name: Load env file
41+
id: dotenv
42+
uses: falti/[email protected]
43+
with:
44+
path: .env
45+
- name: Docker build
46+
run: docker compose build
47+
env:
48+
REGISTRY_PREFIX: ${{ steps.dotenv.outputs.registry_prefix }}
49+
VERSION: ${{ steps.dotenv.outputs.version }}
50+
- name: Helm package and push
51+
working-directory: ./deployment/helm/
52+
run: |-
53+
helm package oneplus-bot

0 commit comments

Comments
 (0)