Skip to content

Commit

Permalink
CORE-1909: added GitHub workflows to generate releases automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
slr71 committed Jun 15, 2023
1 parent a3a263c commit ae52fb4
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: skaffold-build-prerelease
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
pull_request:
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
35 changes: 35 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: skaffold-build-release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
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 ae52fb4

Please sign in to comment.