Skip to content

Commit

Permalink
updated the CI/CD workflows to simply build the executable and put it…
Browse files Browse the repository at this point in the history
… in the release
  • Loading branch information
slr71 committed Dec 19, 2023
1 parent 27402fc commit 42ab93c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 34 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/build-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,14 @@ jobs:
- name: Checkout Repo
id: checkout
uses: actions/checkout@v3
- name: Harbor Login
id: harbor_login
uses: docker/login-action@v2
- name: Set up Go Tools
uses: actions/setup-go@v4
with:
registry: harbor.cyverse.org
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Install Kubernetes Tools
id: install_k8s_tools
uses: yokawasa/action-setup-kube-tools@v0.9.2
- name: Build Docker images
id: build
go-version: '>=1.21.0'
- name: Build Executable
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
go build .
- uses: ncipollo/release-action@v1
with:
artifacts: "build.json,deploy-info.tar.gz"
artifacts: "road-runner"
prerelease: true
23 changes: 6 additions & 17 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,13 @@ jobs:
- name: Checkout Repo
id: checkout
uses: actions/checkout@v3
- name: Harbor Login
id: harbor_login
uses: docker/login-action@v2
- name: Set up Go Tools
uses: actions/setup-go@v4
with:
registry: harbor.cyverse.org
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Install Kubernetes Tools
id: install_k8s_tools
uses: yokawasa/action-setup-kube-tools@v0.9.2
- name: Build Docker images
id: build
go-version: '>=1.21.0'
- name: Build Executable
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
go build .
- uses: ncipollo/release-action@v1
with:
artifacts: "build.json,deploy-info.tar.gz"
artifacts: "road-runner"

0 comments on commit 42ab93c

Please sign in to comment.