diff options
author | 2020-02-02 13:29:55 +0100 | |
---|---|---|
committer | 2020-02-02 13:29:55 +0100 | |
commit | c9f7c4fb6a8094ca9456b7aba5f3d9e441de1f0f (patch) | |
tree | a2aba0aa51227b57016b4c9e3f5cadc55bcc6388 /.github/workflows/main.yml | |
parent | Rename .github/workflows/main.workflow to .github/main.workflow (diff) | |
download | ferdium-server-c9f7c4fb6a8094ca9456b7aba5f3d9e441de1f0f.tar.gz ferdium-server-c9f7c4fb6a8094ca9456b7aba5f3d9e441de1f0f.tar.zst ferdium-server-c9f7c4fb6a8094ca9456b7aba5f3d9e441de1f0f.zip |
Add automatic Docker Hub build for releases
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r-- | .github/workflows/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c361e8e --- /dev/null +++ b/.github/workflows/main.yml | |||
@@ -0,0 +1,18 @@ | |||
1 | name: Trigger Docker Hub build | ||
2 | |||
3 | on: | ||
4 | release: | ||
5 | types: [published] | ||
6 | |||
7 | jobs: | ||
8 | build: | ||
9 | |||
10 | runs-on: ubuntu-latest | ||
11 | |||
12 | steps: | ||
13 | - name: Install HTTPie | ||
14 | run: sudo apt-get install httpie | ||
15 | |||
16 | - name: Send request to Docker Hub to trigger a build | ||
17 | run: > | ||
18 | http post https://hub.docker.com/api/build/v1/source/83564f19-c21a-4dae-9690-971aee3b2a3b/trigger/6a6767a6-7d0d-4050-9055-958552e53b98/call/' | ||