Skip to content

Commit

Permalink
Work Dev Containers
Browse files Browse the repository at this point in the history
- Fix path to docker file.

***NO_CI***
  • Loading branch information
josesimoes committed Feb 9, 2022
1 parent e550a70 commit ff3b7cd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 40 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/devcontainer-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Read docker file content
id: read_dockerfile
uses: andstor/file-reader-action@v1
with:
path: '.devcontainer/Dockerfile.All'

- name: Get container version
run: |
$dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
$dockerfileContent = Get-Content(".devcontainer/Dockerfile.All")
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$containerVersion = $Matches[0].ToString()
echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
shell: pwsh

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/devcontainer-azurertos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Read docker file content
id: read_dockerfile
uses: andstor/file-reader-action@v1
with:
path: '.devcontainer/Dockerfile.AzureRTOS'

- name: Get container version
run: |
$dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
$dockerfileContent = Get-Content(".devcontainer/Dockerfile.AzureRTOS")
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$containerVersion = $Matches[0].ToString()
echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
shell: pwsh

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/devcontainer-chibios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Read docker file content
id: read_dockerfile
uses: andstor/file-reader-action@v1
with:
path: '.devcontainer/Dockerfile.ChibiOS'

- name: Get container version
run: |
$dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
$dockerfileContent = Get-Content(".devcontainer/Dockerfile.ChibiOS")
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$containerVersion = $Matches[0].ToString()
echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
shell: pwsh

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/devcontainer-esp32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Read docker file content
id: read_dockerfile
uses: andstor/file-reader-action@v1
with:
path: '.devcontainer/Dockerfile.ESP32'

- name: Get container version
run: |
$dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
$dockerfileContent = Get-Content(".devcontainer/Dockerfile.ESP32")
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$containerVersion = $Matches[0].ToString()
echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
shell: pwsh

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/devcontainer-ti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Read docker file content
id: read_dockerfile
uses: andstor/file-reader-action@v1
with:
path: '.devcontainer/Dockerfile.TI'

- name: Get container version
run: |
$dockerfileContent = "${ steps.read_dockerfile.outputs.contents }"
$dockerfileContent = Get-Content(".devcontainer/Dockerfile.TI")
$dockerfileContent -match '(?<=\:v)(?:\d+.\d+)'
echo "GCR_VERSION=$Matches[0]" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$containerVersion = $Matches[0].ToString()
echo "GCR_VERSION=$containerVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
shell: pwsh

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
Expand Down

0 comments on commit ff3b7cd

Please sign in to comment.