28
28
steps :
29
29
- uses : actions/checkout@v2
30
30
31
+ # Setup docker to build for multiple platforms (requires qemu).
32
+ # See:
33
+ # https://github.com/docker/build-push-action/tree/v2.3.0#usage
34
+ # https://github.com/docker/build-push-action/blob/v2.3.0/docs/advanced/multi-platform.md
35
+
31
36
- name : Set up QEMU
32
37
uses : docker/setup-qemu-action@v1
33
38
@@ -43,13 +48,19 @@ jobs:
43
48
password : ${{ secrets.DOCKERHUB_TOKEN }}
44
49
45
50
# https://github.com/manics/action-major-minor-tag-calculator-test
51
+ # If this is a tagged build this will return additional parent tags.
52
+ # E.g. 1.2.3 is expanded to Docker tags
53
+ # [{prefix}:1.2.3, {prefix}:1.2, {prefix}:1, {prefix}:latest] unless
54
+ # this is a backported tag in which case the newer tags aren't updated.
55
+ # For branches this will return the branch name.
56
+ # If GITHUB_TOKEN isn't available (e.g. in PRs) returns no tags [].
46
57
- name : Get list of tags
47
58
id : gettags
48
59
# TODO: Move to org?
49
60
uses : manics/action-major-minor-tag-calculator@main
50
61
with :
51
62
githubToken : ${{ secrets.GITHUB_TOKEN }}
52
- prefix : " manics/action-major-minor-tag-calculator-test :"
63
+ prefix : " jupyterhub/configurable-http-proxy :"
53
64
54
65
- name : Display tags
55
66
run : echo "Docker tags ${{ steps.gettags.outputs.tags }}"
59
70
with :
60
71
platforms : linux/amd64,linux/arm64
61
72
push : ${{ startsWith(github.ref, 'refs/tags/') }}
73
+ # tags parameter must be a string input so convert `gettags` JSON
74
+ # array into a comma separated list of tags
62
75
tags : ${{ join(fromJson(steps.gettags.outputs.tags)) }}
0 commit comments