You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #7 from hathitrust/action-updates
Added several feature enhancements:
- Default multi-platform support for amd64 and arm64 docker images.
- Updated versions for actions/checkout, actions/github-script, and docker/login-action
- Added img_tag field to separate github tags and container image tags.
- Added a core output for the id:latest_push. This way, if it's not the latest, we default to unstable while preserving the ability to add tags to the docker image as needed.
- Moved logic from the template build.yml file to this shared action.
Username for logging in to registry. For GHCR (and by default),
20
-
set to github.actor.
21
+
Username for logging in to registry. For GHCR (and by default), set to github.actor.
21
22
default: ${{ github.actor }}
22
23
registry_token:
23
24
description: >-
24
-
Token for logging in to registry. For GHCR (and by default),
25
-
set to github.token.
25
+
Token for logging in to registry. For GHCR (and by default), set to github.token.
26
26
default: ${{ github.token }}
27
27
build-args:
28
28
description: >-
@@ -38,72 +38,107 @@ inputs:
38
38
default: false
39
39
submodules:
40
40
description: >-
41
-
Whether to checkout submodules (as for actions@v3) and thence build them
42
-
into the image. Set to false by default as for checkout. If you use submodules,
43
-
you probably want to set this.
41
+
Whether to checkout submodules (as for actions@v3) and thence build them into the image. Set to false by default as for checkout. If you use submodules, you probably want to set this.
44
42
default: false
43
+
platforms:
44
+
description: >-
45
+
Build images for cross platform support.
46
+
default: "linux/amd64,linux/arm64"
47
+
rebuild:
48
+
description: Rebuild the image manually?
49
+
default: false
50
+
gh_event:
51
+
description: The name of the event that triggered the parent workflow.
45
52
46
53
runs:
47
54
using: composite
48
55
steps:
49
-
- name: Clone latest repository
50
-
uses: actions/checkout@v3
51
-
with:
52
-
ref: ${{ inputs.tag }}
53
-
submodules: ${{ inputs.submodules }}
56
+
- name: Set Inputs & Outputs
57
+
id: set_inputs
58
+
shell: bash
59
+
run: |
60
+
if [ "${{ github.event_name }}" == "workflow_run" ]; then
0 commit comments