Skip to content

Commit a60ef71

Browse files
authored
remove file dependency and add degauss address test
1 parent 0a9907e commit a60ef71

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/docker-image.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
runs-on: self-hosted
2727

2828
steps:
29-
- name: export BUILD_NUM to file
30-
run: date +%Y%m%d%H%M%S > ~/BUILD_NUM
29+
- name: export BUILD_NUM to env
30+
run: echo "BUILD_NUM=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
3131

3232

3333
build-degauss-foundry:
@@ -36,8 +36,6 @@ jobs:
3636

3737
steps:
3838
- uses: actions/checkout@v5
39-
- name: import BUILD_NUM from file
40-
run: echo "BUILD_NUM=$(cat ~/BUILD_NUM)" >> $GITHUB_ENV
4139
- name: print env
4240
run: env | sort
4341
- name: Build the degauss-foundry image
@@ -52,6 +50,8 @@ jobs:
5250
timeout: '1h'
5351
vuln-type: 'os,library'
5452
severity: 'CRITICAL,HIGH,MEDIUM'
53+
- name: test container
54+
run: docker run --rm -v "${PWD}/test":/tmp ${{ env.container }} my_address_file.csv
5555

5656
setup-postgis-states:
5757
runs-on: self-hosted
@@ -61,10 +61,8 @@ jobs:
6161

6262
steps:
6363
- id: matrix
64-
run: |
65-
echo 'value=["ak", "al", "ar", "az", "ca", "co", "ct", "dc", "de", "fl", "ga", "hi", "ia", "id", "il", "in", "ks", "ky", "la", "ma", "md", "me", "mi", "mn", "mo", "ms", "mt", "nc", "nd", "ne", "nh", "nj", "nm", "nv", "ny", "oh", "ok", "or", "pa", "ri", "sc", "sd", "tn", "tx", "ut", "va", "vt", "wa", "wi", "wv", "wy", "pr"]' >> $GITHUB_OUTPUT
66-
- run: |
67-
echo "${{ steps.matrix.outputs.value }}"
64+
run: echo 'value=["ak", "al", "ar", "az", "ca", "co", "ct", "dc", "de", "fl", "ga", "hi", "ia", "id", "il", "in", "ks", "ky", "la", "ma", "md", "me", "mi", "mn", "mo", "ms", "mt", "nc", "nd", "ne", "nh", "nj", "nm", "nv", "ny", "oh", "ok", "or", "pa", "ri", "sc", "sd", "tn", "tx", "ut", "va", "vt", "wa", "wi", "wv", "wy", "pr"]' >> $GITHUB_OUTPUT
65+
- run: echo "${{ steps.matrix.outputs.value }}"
6866

6967
build-postgis-states:
7068
runs-on: self-hosted
@@ -76,8 +74,6 @@ jobs:
7674

7775
steps:
7876
- uses: actions/checkout@v5
79-
- name: import BUILD_NUM from file
80-
run: echo "BUILD_NUM=$(cat ~/BUILD_NUM)" >> $GITHUB_ENV
8177
- name: print env
8278
run: env | sort
8379
- name: Build the postgis image

0 commit comments

Comments
 (0)