forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.19 KB
/
validate-release.yml
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
# Validate a Release
name: validate-release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
sanity_check_release:
name: Sanity check the release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate the release
run: ./scripts/validate-release.py
verify_docker_release:
name: Verify the docker release works
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate docker release
run: ./scripts/validate-docker-release.sh
verify_ubuntu_release:
name: Verify the ubuntu release works
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: build tester image
uses: docker/build-push-action@v1
with:
push: false
path: scripts
dockerfile: scripts/Dockerfile.16.04
build_args: version=${{ steps.get_version.outputs.VERSION }}