Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
finish from release github workflow, create the security policy
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Jan 5, 2022
1 parent 38445fa commit a91bc71
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 0.1.x | :white_check_mark: |
| < 0.1 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release

on:
push:
tags:
- '*'

env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

permissions: write-all

jobs:
build-and-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0

- name: Set up `Go`
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Set up `GoReleaser`
uses: goreleaser/goreleaser-action@v2
with:
install-only: true

- name: Set up `Tag`
id: ghtag
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Set up `Date`
run: go run ./scripts/date.go >> date.txt

- name: Build
run: BuildDate="$(cat date.txt)" goreleaser release --rm-dist --timeout 100m

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_ID }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Build Doko Containers
run: |
make brc
make bfrc

0 comments on commit a91bc71

Please sign in to comment.