-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 1.12 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract tag name
id: tag
run: echo ::set-output name=VERSION::$(echo "${{ github.ref }}" | sed -e 's/.*\/v\(.*\)/\1/')
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false
body: |
This is the ${{ github.ref }} release of Harbor Scanner Adapter for Sysdig Secure
### Major Changes
### Minor Changes
### Bug fixes
- name: Build and push Docker image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.SYSDIGLABS_DOCKERHUB_USER }}
password: ${{ secrets.SYSDIGLABS_DOCKERHUB_TOKEN }}
repository: sysdiglabs/harbor-scanner-sysdig-secure
add_git_labels: true
dockerfile: build/Dockerfile
tags: latest, ${{ steps.tag.outputs.VERSION }}