Skip to content

Commit

Permalink
Setup ci for apiserver (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffwan authored Feb 28, 2022
1 parent 401cbe7 commit 0ef7861
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
env:
working-directory: ./ray-operator
cli-working-directory: ./cli
apiserver-working-directory: ./apiserver
name: Build
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -134,10 +135,13 @@ jobs:
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Build Docker Image
- name: Build Docker Image - Operator
run: IMG=kuberay/operator:${{ steps.vars.outputs.sha_short }} make docker-image
working-directory: ${{env.working-directory}}

- name: Build Docker Image - Apiserver
run: docker build -t kuberay/apiserver:${{ steps.vars.outputs.sha_short }} -f apiserver/Dockerfile .

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
Expand All @@ -150,9 +154,14 @@ jobs:
docker push kuberay/operator:${{ steps.vars.outputs.sha_short }};
docker image tag kuberay/operator:${{ steps.vars.outputs.sha_short }} kuberay/operator:nightly;
docker push kuberay/operator:nightly
docker push kuberay/apiserver:${{ steps.vars.outputs.sha_short }};
docker image tag kuberay/apiserver:${{ steps.vars.outputs.sha_short }} kuberay/apiserver:nightly;
docker push kuberay/apiserver:nightly
working-directory: ${{env.working-directory}}
if: ${{ github.ref == 'refs/heads/master' }}

- name: Build CLI
run: go build -o kuberay -a main.go
working-directory: ${{env.cli-working-directory}}

0 comments on commit 0ef7861

Please sign in to comment.