diff --git a/.github/workflows/image_publishing.yml b/.github/workflows/image_publishing.yml index d9f5c59..800b5cb 100644 --- a/.github/workflows/image_publishing.yml +++ b/.github/workflows/image_publishing.yml @@ -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 diff --git a/Action.Dockerfile b/Action.Dockerfile new file mode 100644 index 0000000..fa45b5d --- /dev/null +++ b/Action.Dockerfile @@ -0,0 +1 @@ +FROM sergeyladanov/nrf-connect-sdk:v2.4.0 diff --git a/Dockerfile b/Image.Dockerfile similarity index 98% rename from Dockerfile rename to Image.Dockerfile index 6e7e08e..0465444 100644 --- a/Dockerfile +++ b/Image.Dockerfile @@ -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 diff --git a/README.md b/README.md index b65bcfc..745c4e2 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/action.yml b/action.yml index e0e111f..17bcdcf 100644 --- a/action.yml +++ b/action.yml @@ -10,7 +10,7 @@ inputs: default: 'build' runs: using: 'docker' - image: 'Dockerfile' + image: 'Action.Dockerfile' args: - west - build diff --git a/docker-compose.yml b/docker-compose.yml index 7e79ce0..a01f85b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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