-
-
Notifications
You must be signed in to change notification settings - Fork 75
31 lines (25 loc) · 767 Bytes
/
builddocker-release.yaml
File metadata and controls
31 lines (25 loc) · 767 Bytes
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
name: Build docker release images
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.ACCESS_TOKEN_REPO }}
steps:
- uses: oprypin/find-latest-tag@v1
with:
repository: Forceu/barcodebuddy
releases-only: true
prefix: 'v'
id: latestversion
- uses: actions/checkout@v2
- name: build multiarch
run: |
curl -u ":$TOKEN" \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/forceu/barcodebuddy-docker/actions/workflows/docker-publish-release.yml/dispatches \
-d '{"ref": "master", "inputs": {"version": "${{ steps.latestversion.outputs.tag }}"}}'