Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 761fcfc

Browse files
committed
ci: build both yt:backend and tk:backend with docker as CI step
1 parent 4c13157 commit 761fcfc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/daily_release.yml

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- daily
77

8+
env:
9+
YT_IMAGE_NAME: yt-backend
10+
TK_IMAGE_NAME: tk-backend
11+
812
jobs:
913
release:
1014
name: Release
@@ -56,3 +60,13 @@ jobs:
5660
remote_host: ${{ secrets.YCAI_DAILY_DEPLOY_HOST }}
5761
remote_user: ${{ secrets.YCAI_DEPLOY_USER }}
5862
remote_key: ${{ secrets.YCAI_DEPLOY_KEY }}
63+
64+
- name: Build YT Backend image
65+
run: docker build . --file Dockerfile.ytbackend --tag $YT_IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
66+
67+
- name: Build TK Backend image
68+
run: docker build . --file Dockerfile.tkbackend --tag $TK_IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
69+
70+
- name: Log in to registry
71+
# This is where you will update the personal access token to GITHUB_TOKEN
72+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

0 commit comments

Comments
 (0)