Skip to content

Commit a316ebc

Browse files
committed
🔨 update build action
1 parent 9ae0c7a commit a316ebc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎.github/workflows/docker-build-push.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,24 @@ on:
99
default: '["self-hosted", "MacOS", "ARM64"]'
1010

1111
jobs:
12+
checkout:
13+
runs-on: ${{ fromJson(inputs.runner_label_json) }}
14+
outputs:
15+
sha: ${{ steps.get-sha.outputs.sha }}
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Get commit SHA
21+
id: get-sha
22+
run: echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
23+
1224
setup-builder:
1325
runs-on: ${{ fromJson(inputs.runner_label_json) }}
1426
steps:
1527
- name: Set up Docker Buildx
1628
run: |
17-
docker buildx create --name nexent_builder --use
29+
docker buildx create --name nexent_builder --use --append || docker buildx use nexent_builder
1830
1931
build-and-push-base:
2032
runs-on: ${{ fromJson(inputs.runner_label_json) }}

0 commit comments

Comments
 (0)