-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (34 loc) · 953 Bytes
/
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
name: Release
on:
release:
types:
- published
jobs:
build-docker:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Set up task tool
uses: arduino/setup-task@v1
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup test environment
run: task install
- name: Validate the source files
run: task lint
- name: Run the dockerfile linter
run: task dockerfile-lint
- name: Run tests
run: task test
- name: Run Docker build task
run: task build-docker
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push docker images
run: task push-docker