-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Publish ironclaw-worker image from Dockerfile.worker #1979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c111d30
73976cc
54391c9
5240474
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,9 +17,13 @@ on: | |||||||
| required: false | ||||||||
| type: string | ||||||||
| default: "" | ||||||||
| # Daily staging build from the staging branch | ||||||||
| schedule: | ||||||||
| - cron: '0 6 * * *' | ||||||||
|
|
||||||||
| env: | ||||||||
| IMAGE_NAME: nearaidev/ironclaw | ||||||||
| WORKER_IMAGE_NAME: nearaidev/ironclaw-worker | ||||||||
|
|
||||||||
| jobs: | ||||||||
| build: | ||||||||
|
|
@@ -32,6 +36,8 @@ jobs: | |||||||
| steps: | ||||||||
| - name: Checkout | ||||||||
| uses: actions/checkout@v4 | ||||||||
| with: | ||||||||
| ref: ${{ github.event_name == 'schedule' && 'staging' || '' }} | ||||||||
|
|
||||||||
| - name: Extract version from Cargo.toml | ||||||||
| id: version | ||||||||
|
|
@@ -45,22 +51,35 @@ jobs: | |||||||
| run: | | ||||||||
| VERSION="${{ steps.version.outputs.version }}" | ||||||||
| SHA="sha-${GITHUB_SHA::7}" | ||||||||
|
||||||||
| SHA="sha-${GITHUB_SHA::7}" | |
| SHORT_SHA="$(git rev-parse --short HEAD)" | |
| SHA="sha-${SHORT_SHA}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actions/checkoutis given an emptyreffor non-scheduled runs (... || '').checkoutexpects a valid ref/SHA and an empty string can cause the step to fail. Use a non-empty fallback likegithub.ref/github.sha, or split into two checkout steps withif: github.event_name == 'schedule'and norefoverride otherwise.