-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.2 KB
/
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
name: Tag & Release
on:
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name. eg) 1.0.0 or 1.0.0-rc.1'
required: true
jobs:
release:
name: Release ${{ github.event.inputs.TAG_NAME }}
runs-on: ubuntu-latest
steps:
- name: Docker Login
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Build Docker Image and Tag
run: |
docker build . -t nuclio_lighting_flash
docker tag nuclio_lighting_flash ghcr.io/greenroom-robotics/nuclio_lighting_flash:latest
docker tag nuclio_lighting_flash ghcr.io/greenroom-robotics/nuclio_lighting_flash:${{github.event.inputs.TAG_NAME}}
docker push ghcr.io/greenroom-robotics/nuclio_lighting_flash:latest
docker push ghcr.io/greenroom-robotics/nuclio_lighting_flash:${{github.event.inputs.TAG_NAME}}
- name: Create a release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.TAG_NAME }}
generate_release_notes: true