-
Notifications
You must be signed in to change notification settings - Fork 75
47 lines (38 loc) · 1.18 KB
/
api-change.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
41
42
43
44
45
46
47
name: Generate API changes
on:
workflow_dispatch:
inputs:
tag1:
description: 'First ESMF Tag'
required: true
default: 'v8.7.0'
tag2:
description: 'Second ESMF Tag'
required: true
default: 'develop'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Dockerfiles
uses: actions/checkout@v3
with:
repository: esmf-org/esmf-containers
path: esmf-containers
ref: main
- name: Build Docker image
run: |
cd ${{ github.workspace }}/esmf-containers/api-change
docker build . --tag esmf/api-change --build-arg TAG1="${{ inputs.tag1 }}" --build-arg TAG2="${{ inputs.tag2 }}"
- name: Copy artifacts
run: |
mkdir -p ${{ github.workspace }}/artifacts
CID=$(docker run -dit --name runner esmf/api-change)
docker cp ${CID}:/artifacts/api_change-artifacts.zip ${{ github.workspace }}/artifacts
docker stop ${CID}
docker rm ${CID}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: api-change
path: ${{ github.workspace }}/artifacts