Skip to content

Commit

Permalink
CORE-1909: added GitHub actions for creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
slr71 committed Jun 15, 2023
1 parent c3a3f2b commit 92c7099
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-prerelease.yml
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
34 changes: 34 additions & 0 deletions .github/workflows/build-release.yml
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"

0 comments on commit 92c7099

Please sign in to comment.