-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.02 KB
/
ci.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
name: ci
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- master
jobs:
zunit:
name: zunit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run zunit from local action
uses: ./.github/actions/zunit-run
# Notify Docker Hub to make a new build
# See https://stackoverflow.com/questions/34710513/how-can-i-update-full-description-on-docker-hub-automatically
build:
if: github.ref == 'refs/heads/master'
name: build
needs: zunit
runs-on: ubuntu-latest
steps:
- name: Trigger dockerhub build
env:
DOCKERHUB_SOURCE: ${{ secrets.DOCKERHUB_SOURCE }}
DOCKERHUB_TRIGGER: ${{ secrets.DOCKERHUB_TRIGGER }}
run: >
curl
--request POST
--header 'Content-Type: application/json'
--data '{"docker_tag_name": "latest"}'
--output /dev/null
--silent
https://hub.docker.com/api/build/v1/source/$DOCKERHUB_SOURCE/trigger/$DOCKERHUB_TRIGGER/call/
# vim: ts=2 sw=2 sts=2 et