-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ievgenii Shepeliuk <[email protected]>
- Loading branch information
1 parent
0ff92fc
commit 2d3b6e9
Showing
2 changed files
with
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,50 +7,48 @@ on: | |
|
||
jobs: | ||
docker_job: | ||
name: Docker image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: volesen/[email protected] | ||
with: | ||
version: 'v1.38.0' | ||
- uses: extractions/setup-just@v1 | ||
- name: Calculate release version | ||
- name: release version | ||
id: theVersion | ||
run: echo "::set-output name=theVersion::$(echo ${GITHUB_REF##*/})" | ||
- name: Login to DockerHub | ||
- name: login to dockerhub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Build docker image | ||
- name: build and publish image, create chart archive | ||
run: | | ||
just VERSION=${{ steps.theVersion.outputs.theVersion }} build-release | ||
- name: Upload Helm artifact | ||
- name: upload helm artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: "helm" | ||
path: "opa-${{ steps.theVersion.outputs.theVersion }}.tgz" | ||
|
||
helm_job: | ||
name: Helm chart | ||
runs-on: ubuntu-latest | ||
needs: docker_job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
- name: Download artifact from build job | ||
- name: download helm artifact | ||
uses: actions/download-artifact@v2 | ||
id: download | ||
with: | ||
name: helm | ||
path: /tmp/helm | ||
- name: Update Helm index | ||
- name: update helm index | ||
run: | | ||
helm repo index /tmp/helm --merge ./charts/index.yaml | ||
mv -f /tmp/helm/* ./charts | ||
- name: Publish index and chart to gh-pages | ||
- name: publish index and chart | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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