File tree 5 files changed +20
-40
lines changed
5 files changed +20
-40
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,13 @@ jobs:
22
22
- name : Checkout Repository
23
23
uses : actions/checkout@v2
24
24
25
- - name : Read docker file content
26
- id : read_dockerfile
27
- uses : andstor/file-reader-action@v1
28
- with :
29
- path : ' .devcontainer/Dockerfile.All'
30
-
31
25
- name : Get container version
32
26
run : |
33
- $dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
27
+ $dockerfileContent = Get-Content(".devcontainer/Dockerfile.All")
34
28
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
35
- echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
29
+ $containerVersion = $Matches[0].ToString()
30
+ echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
31
+ shell : pwsh
36
32
37
33
- name : Login to GitHub Container Registry
38
34
uses : docker/login-action@v1
Original file line number Diff line number Diff line change @@ -22,17 +22,13 @@ jobs:
22
22
- name : Checkout Repository
23
23
uses : actions/checkout@v2
24
24
25
- - name : Read docker file content
26
- id : read_dockerfile
27
- uses : andstor/file-reader-action@v1
28
- with :
29
- path : ' .devcontainer/Dockerfile.AzureRTOS'
30
-
31
25
- name : Get container version
32
26
run : |
33
- $dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
27
+ $dockerfileContent = Get-Content(".devcontainer/Dockerfile.AzureRTOS")
34
28
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
35
- echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
29
+ $containerVersion = $Matches[0].ToString()
30
+ echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
31
+ shell : pwsh
36
32
37
33
- name : Login to GitHub Container Registry
38
34
uses : docker/login-action@v1
Original file line number Diff line number Diff line change @@ -22,17 +22,13 @@ jobs:
22
22
- name : Checkout Repository
23
23
uses : actions/checkout@v2
24
24
25
- - name : Read docker file content
26
- id : read_dockerfile
27
- uses : andstor/file-reader-action@v1
28
- with :
29
- path : ' .devcontainer/Dockerfile.ChibiOS'
30
-
31
25
- name : Get container version
32
26
run : |
33
- $dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
27
+ $dockerfileContent = Get-Content(".devcontainer/Dockerfile.ChibiOS")
34
28
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
35
- echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
29
+ $containerVersion = $Matches[0].ToString()
30
+ echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
31
+ shell : pwsh
36
32
37
33
- name : Login to GitHub Container Registry
38
34
uses : docker/login-action@v1
Original file line number Diff line number Diff line change @@ -22,17 +22,13 @@ jobs:
22
22
- name : Checkout Repository
23
23
uses : actions/checkout@v2
24
24
25
- - name : Read docker file content
26
- id : read_dockerfile
27
- uses : andstor/file-reader-action@v1
28
- with :
29
- path : ' .devcontainer/Dockerfile.ESP32'
30
-
31
25
- name : Get container version
32
26
run : |
33
- $dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
27
+ $dockerfileContent = Get-Content(".devcontainer/Dockerfile.ESP32")
34
28
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
35
- echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
29
+ $containerVersion = $Matches[0].ToString()
30
+ echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
31
+ shell : pwsh
36
32
37
33
- name : Login to GitHub Container Registry
38
34
uses : docker/login-action@v1
Original file line number Diff line number Diff line change @@ -22,17 +22,13 @@ jobs:
22
22
- name : Checkout Repository
23
23
uses : actions/checkout@v2
24
24
25
- - name : Read docker file content
26
- id : read_dockerfile
27
- uses : andstor/file-reader-action@v1
28
- with :
29
- path : ' .devcontainer/Dockerfile.TI'
30
-
31
25
- name : Get container version
32
26
run : |
33
- $dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
27
+ $dockerfileContent = Get-Content(".devcontainer/Dockerfile.TI")
34
28
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
35
- echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
29
+ $containerVersion = $Matches[0].ToString()
30
+ echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
31
+ shell : pwsh
36
32
37
33
- name : Login to GitHub Container Registry
38
34
uses : docker/login-action@v1
You can’t perform that action at this time.
0 commit comments