-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from tigergraph/GML-1728-ci-changes
update(build): update builds for cloud and on-prem branches
- Loading branch information
Showing
5 changed files
with
97 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CoPilot Build Nightly | ||
|
||
on: | ||
push: | ||
branches: [ "dev" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
SHA: ${{ github.sha }} | ||
|
||
jobs: | ||
build-image: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image: ${{steps.get-image.outputs.IMAGE}} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.PUBLIC_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.PUBLIC_DOCKERHUB_TOKEN }} | ||
|
||
- name: Get Image tag | ||
id: get-image | ||
run: | | ||
IMAGE=tginternal/copilot:${SHA::6} | ||
echo "IMAGE=$IMAGE" >> $GITHUB_ENV | ||
echo "IMAGE=$IMAGE" >> $GITHUB_OUTPUT${{ needs.setup.outputs.image }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: | | ||
${{ env.IMAGE }} | ||
tginternal/copilot:dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CoPilot Build Cloud | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
SHA: ${{ github.sha }} | ||
|
||
jobs: | ||
build-image: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image: ${{steps.get-image.outputs.IMAGE}} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.PUBLIC_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.PUBLIC_DOCKERHUB_TOKEN }} | ||
|
||
- name: Get Image tag | ||
id: get-image | ||
run: | | ||
IMAGE=tginternal/copilot:${SHA::6} | ||
echo "IMAGE=$IMAGE" >> $GITHUB_ENV | ||
echo "IMAGE=$IMAGE" >> $GITHUB_OUTPUT${{ needs.setup.outputs.image }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: | | ||
${{ env.IMAGE }} | ||
tginternal/copilot:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
- cloud-main | ||
- cloud-dev | ||
|
||
jobs: | ||
test: | ||
|