-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.11 KB
/
release.yaml
File metadata and controls
50 lines (46 loc) · 1.11 KB
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
45
46
47
48
49
50
name: Release
on:
push:
tags:
- "v*"
env:
CR_PAT: ${{ secrets.CR_PAT }}
jobs:
build:
if: ${{ false }}
name: Build Image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install make
run: |
sudo apt-get update
sudo apt-get install -y make
- name: Build Image
run: |
make build
- name: Tag Image
run: make tag-image
- name: Authenticate Image Registry
run: echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
- name: Push Image
run: make push-image
release:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install make
run: |
sudo apt-get update -y
sudo apt-get install -y make
- name: build package
run: make build
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
dist/*