-
Notifications
You must be signed in to change notification settings - Fork 5
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 #20 from slr71/master
CORE-1909: added GitHub actions for creating releases
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: skaffold-build-prerelease | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" | ||
jobs: | ||
pipeline: | ||
name: Skaffold Docker build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Repo | ||
id: checkout | ||
uses: actions/checkout@v3 | ||
- name: Harbor Login | ||
id: harbor_login | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: harbor.cyverse.org | ||
username: ${{ secrets.HARBOR_USERNAME }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
- name: Install Kubernetes Tools | ||
id: install_k8s_tools | ||
uses: yokawasa/[email protected] | ||
- name: Build Docker images | ||
id: build | ||
run: | | ||
skaffold build --file-output build.json | ||
- name: Build manifest tarball | ||
id: build_manifest_tarball | ||
run: | | ||
tar -czpvf deploy-info.tar.gz build.json skaffold.yaml k8s | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "build.json,deploy-info.tar.gz" | ||
prerelease: true |
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,34 @@ | ||
name: skaffold-build-release | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
jobs: | ||
pipeline: | ||
name: Skaffold Docker build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Repo | ||
id: checkout | ||
uses: actions/checkout@v3 | ||
- name: Harbor Login | ||
id: harbor_login | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: harbor.cyverse.org | ||
username: ${{ secrets.HARBOR_USERNAME }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
- name: Install Kubernetes Tools | ||
id: install_k8s_tools | ||
uses: yokawasa/[email protected] | ||
- name: Build Docker images | ||
id: build | ||
run: | | ||
skaffold build --file-output build.json | ||
- name: Build manifest tarball | ||
id: build_manifest_tarball | ||
run: | | ||
tar -czpvf deploy-info.tar.gz build.json skaffold.yaml k8s | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "build.json,deploy-info.tar.gz" |