Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed Jan 21, 2024
1 parent 0de73cb commit 48bc6d0
Show file tree
Hide file tree
Showing 34 changed files with 577 additions and 2,289 deletions.
14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/architecture-diagram.md

This file was deleted.

51 changes: 0 additions & 51 deletions .github/ISSUE_TEMPLATE/issue-template.md

This file was deleted.

94 changes: 0 additions & 94 deletions .github/ISSUE_TEMPLATE/planning.md

This file was deleted.

39 changes: 0 additions & 39 deletions .github/ISSUE_TEMPLATE/setup-local-development-tools.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/pull_request_template.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: goreleaser

on:
pull_request:
push:

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Test
run: go test ./...

- name: Dependencies
run: |
sudo apt install -qy binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
mkdir /tmp/zlib
cd /tmp/zlib
wget https://www.zlib.net/current/zlib.tar.gz
tar xvf zlib.tar.gz
cd zlib-*
CC=aarch64-linux-gnu-gcc AR=aarch64-linux-gnu-ar CHOST=arm64 ./configure --static
make
sudo make install
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: snapshot
path: dist/*
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
functions/packages/
functions/source/soci-index-generator-lambda/main
functions/source/soci-index-generator-lambda/*.zip
taskcat_outputs/
/*.zip
dist
*.exe
.idea
60 changes: 60 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
project_name: standalone-soci-indexer
before:
hooks:
- go mod tidy
builds:
- id: x64
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
tags:
- osusergo
- netgo
- static_build
ldflags:
- -extldflags "-static"
- id: arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
tags:
- osusergo
- netgo
- static_build
ldflags:
- -extldflags "-static"
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github
sort: asc
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
1 change: 0 additions & 1 deletion .metadata

This file was deleted.

Loading

0 comments on commit 48bc6d0

Please sign in to comment.