Merge pull request #8 from embedd-actions/test

Test
This commit is contained in:
Sergey 2023-09-19 08:15:32 +03:00 committed by GitHub
commit e78b1d32d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 4 deletions

View File

@ -3,7 +3,7 @@ name: Publish image
on:
push:
tags:
- '*'
- 'v*.*.*'
jobs:
build:
@ -36,6 +36,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: Image.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64

1
Action.Dockerfile Normal file
View File

@ -0,0 +1 @@
FROM sergeyladanov/nrf-connect-sdk:v2.4.0

View File

@ -1,7 +1,7 @@
FROM debian:stable-slim
#ARG ARCH=amd64
ARG NRF_CONNECT_TAG=v2.4.2
ARG NRF_CONNECT_TAG=v2.4.0
# Should be for selected NRF_CONNECT_TAG
ARG ZEPHYR_NEEDED_TAG=0.16.0
# For new versions - xz

View File

@ -20,3 +20,19 @@ jobs:
build_dir: build
```
## How to specify a version of NRF Connect SDK
To select the specific version of NRF Connect SDK you
can reference a specific version of GitHub action:
```
uses: embedd-actions/nrf-connect-sdk-ci@v2.3.0
uses: embedd-actions/nrf-connect-sdk-ci@v2.4.0
```
## List of available tags
```
v2.3.0
v2.4.0
```

View File

@ -10,7 +10,7 @@ inputs:
default: 'build'
runs:
using: 'docker'
image: 'Dockerfile'
image: 'Action.Dockerfile'
args:
- west
- build

View File

@ -5,7 +5,7 @@ services:
container_name: nrf
build:
context: .
dockerfile: Dockerfile
dockerfile: Image.Dockerfile
args:
- NRF_CONNECT_TAG=v2.3.0
- ZEPHYR_NEEDED_TAG=0.15.2