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
Copy file name to clipboardExpand all lines: .github/workflows/docker.yaml
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ on:
10
10
ref:
11
11
description: 'The git ref (branch or tag) to build the Docker image from.'
12
12
required: true
13
+
version:
14
+
description: 'Version tag for the Docker image (e.g., 0.3.3)'
15
+
required: true
13
16
14
17
env:
15
18
REGISTRY: ghcr.io
@@ -28,6 +31,9 @@ jobs:
28
31
steps:
29
32
- name: Checkout repository
30
33
uses: actions/checkout@v5
34
+
with:
35
+
ref: ${{ github.event.inputs.ref || github.ref }}
36
+
path: trinity-${{ github.run_id }}
31
37
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
48
56
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
49
57
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
0 commit comments