Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
feat: refactor pipelines after kubernetes removal
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel1302 authored Jun 19, 2024
1 parent e2b2317 commit bf5423b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 112 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/continous-delivery.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/continous-deployment.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/release-binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Release topgun

"on":
push:
tags:
- "v*"

jobs:
release:
name: "Release for ${{ matrix.os }}-${{ matrix.arch }}"
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
arch: [amd64, arm64]
os: [linux, darwin]
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0

steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ inputs.tag }}

- name: Build binary
run: go build -o dist/topgun-${{ matrix.os }}-${{ matrix.arch }} ./cmd/topgun-service/main.go

- name: Bundle binary in archive
uses: thedoctor0/zip-release@master
with:
type: zip
directory: dist
filename: topgun-${{ matrix.os }}-${{ matrix.arch }}.zip

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.zip
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bf5423b

Please sign in to comment.