forked from alexey-ban/ai-dial-chat-themes
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.14 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: PR
on:
pull_request:
branches:
- development
# TODO: add release-* ??
# TODO: remove branches condition ??
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
plan:
uses: nepalevov/ai-dial-ci/.github/workflows/gh_environment.yml@main
with:
operation: plan
check-and-build:
needs:
- plan
uses: nepalevov/ai-dial-ci/.github/workflows/generic_docker_pr.yml@main
with:
enable_ort: false
# HINT: outputs: ["image_name", "image_tag", "artifact_name"]
use:
runs-on: ubuntu-latest
needs: check-and-build
steps:
- name: Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ needs.check-and-build.outputs.artifact_name }}
path: /tmp
- name: Load image
run: |
docker load --input /tmp/${{ needs.check-and-build.outputs.artifact_name }}.tar
docker image inspect ${{ needs.check-and-build.outputs.image_name }}:${{ needs.check-and-build.outputs.image_tag }}