Skip to content

Commit

Permalink
Download kpt in demo functions CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfarzan committed May 15, 2020
1 parent 9795110 commit 2be9579
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions .github/workflows/release-demo-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,33 @@ jobs:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Set up gcloud
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '275.0.0'
- uses: actions/checkout@v1
- name: Set up gcloud
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: "275.0.0"
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
- run: gcloud auth configure-docker
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install NPM packages
run: |
cd ts/demo-functions
npm ci
npm test
- name: Build docker images
run: |
cd ts/demo-functions
npm run kpt:docker-build -- --tag=latest
- name: Run all e2e tests
run: |
TAG=latest tests/e2e.sh
- name: Push docker images
run: |
cd ts/demo-functions
npm run kpt:docker-push -- --tag=latest
- run: gcloud auth configure-docker
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install NPM packages
run: |
cd ts/demo-functions
npm ci
npm test
- name: Build docker images
run: |
cd ts/demo-functions
npm run kpt:docker-build -- --tag=latest
- name: Run all e2e tests
run: |
sudo curl https://storage.googleapis.com/kpt-dev/latest/linux_amd64/kpt -o /usr/local/bin/kpt
sudo chmod +x /usr/local/bin/kpt
TAG=latest tests/e2e.sh
- name: Push docker images
run: |
cd ts/demo-functions
npm run kpt:docker-push -- --tag=latest

0 comments on commit 2be9579

Please sign in to comment.