Skip to content

Commit

Permalink
Adding backport workflow for apt security updates + container api met…
Browse files Browse the repository at this point in the history
…hods
  • Loading branch information
chrisvintc committed Dec 11, 2021
1 parent 2f10235 commit 2236b28
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/1rtos-container-image-backport.yml
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 modified 1rtos/container-api.sh
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ RUN wget ${WGET_ARGS} https://static.rust-lang.org/rustup/rustup-init.sh && \

# create container /opt/1rtos directory from repo 1rtos directory
COPY ./1rtos/* /opt/1rtos/
RUN chmod -R 755 /opt/1rtos

# Set the locale
ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr
Expand Down

0 comments on commit 2236b28

Please sign in to comment.