forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding backport workflow for apt security updates + container api met…
…hods
- Loading branch information
1 parent
2f10235
commit 2236b28
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 1rtos-container-image-backport.yml | ||
# Back-ports changes to /1rtos to legacy container images | ||
|
||
name: container-image-backport | ||
concurrency: 1rtos_container_cd | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main-intel | ||
paths: | ||
- '1rtos/**' | ||
|
||
jobs: | ||
backport-1rtos: | ||
runs-on: testhead | ||
strategy: | ||
matrix: | ||
img: [ '127.0.0.1:5000/sdk-docker-intel' ] | ||
tag: [v2.7-branch, v2.6-branch, v2.5-branch] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Rebuild container latest apt update + fresh copy of /1rtos contents, then and push to registry.' | ||
run: | | ||
echo -e 'FROM ${{ matrix.img }}:${{ matrix.tag }}\nARG HTTPPROXY=\nARG HTTPSPROXY=\nENV http_proxy=$HTTPPROXY\nENV https_proxy=$HTTPSPROXY\nUSER root\nRUN apt-get -y update && apt-get -y upgrade\nCOPY ./1rtos/* /opt/1rtos/\nUSER 1rtosdev' > Dockerfile | ||
docker build --pull --build-arg UID=$(id -u) --build-arg GID=$(id -g) --build-arg HTTPPROXY=$http_proxy --build-arg HTTPSPROXY=$https_proxy -t ${{ matrix.img }}:${{ matrix.tag }} . | ||
docker push ${{ matrix.img }}:${{ matrix.tag }} | ||
shell: bash |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters