Skip to content

Commit

Permalink
Merge 3c08ab0 into 3170dc3
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 committed Feb 18, 2021
2 parents 3170dc3 + 3c08ab0 commit df5fc59
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 62 deletions.
52 changes: 0 additions & 52 deletions .circleci/config.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/release.yaml
@@ -0,0 +1,60 @@
name: Release
on:
push:
tags:
- "v*"
env:
GO_VERSION: "1.15"
GH_USER: "aqua-bot"
jobs:
release:
name: Release
runs-on: ubuntu-18.04 # 20.04 doesn't provide createrepo for now
steps:
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install rpm reprepro createrepo distro-info
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout trivy-repo
uses: actions/checkout@v2
with:
repository: ${{ github.repository_owner }}/trivy-repo
path: trivy-repo
fetch-depth: 0
token: ${{ secrets.ORG_GITHUB_TOKEN }}
- name: Login to docker.io registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to ghcr.io registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ env.GH_USER }}
password: ${{ secrets.ORG_GITHUB_TOKEN }}
- name: Release
uses: goreleaser/goreleaser-action@v2
with:
version: v0.156.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup git settings
run: |
git config --global user.email "knqyf263@gmail.com"
git config --global user.name "Teppei Fukuda"
- name: Create rpm repository
run: ci/deploy-rpm.sh
- name: Import GPG key
run: echo -e "${{ secrets.GPG_KEY }}" | gpg --import
- name: Create deb repository
run: ci/deploy-deb.sh
10 changes: 0 additions & 10 deletions ci/Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions goreleaser.yml
Expand Up @@ -25,6 +25,9 @@ builds:
ignore:
- goos: darwin
goarch: 386
# TODO: bump up Go to 1.16
- goos: darwin
goarch: arm64

nfpms:
-
Expand Down

0 comments on commit df5fc59

Please sign in to comment.