Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
style: rename docker_image identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jun 17, 2021
1 parent be956e2 commit 3d6cc61
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
name: Prepare Docker image
runs-on: ubuntu-latest
outputs:
docker_image: ${{ steps.docker-image-tag.outputs.docker_image }}
docker-image: ${{ steps.docker-image-tag.outputs.docker-image }}
steps:
- uses: actions/checkout@v2

Expand All @@ -84,7 +84,7 @@ jobs:
echo $SUPL_CLIENT_LIB_DOWNLOAD >> .docker-checksum
DOCKER_CHECKSUM=`sha256sum .docker-checksum | awk '{ print $1 }' | tr -d '\n'`
DOCKER_IMAGE=ghcr.io/${DOCKER_REPO_NAME}-builder:${DOCKER_CHECKSUM}
echo "::set-output name=docker_image::${DOCKER_IMAGE}"
echo "::set-output name=docker-image::${DOCKER_IMAGE}"
echo "DOCKER_IMAGE=${DOCKER_IMAGE}" >> $GITHUB_ENV
- name: Check if Docker image exists
Expand Down Expand Up @@ -187,17 +187,17 @@ jobs:
password: ${{ secrets.CR_PAT }}

- name: Pull Docker image
run: docker pull ${{ needs.docker.outputs.docker_image }}
run: docker pull ${{ needs.docker.outputs.docker-image }}

- name: Build with debug enabled
if: matrix.loglevel == 'debug'
run: |
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker_image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG="overlay-debug.conf;asset-tracker-cloud-firmware-aws.conf" -DEXTRA_CFLAGS="-Werror=format-truncation"'
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker-image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG="overlay-debug.conf;asset-tracker-cloud-firmware-aws.conf" -DEXTRA_CFLAGS="-Werror=format-truncation"'
- name: Build with debug disabled
if: matrix.loglevel != 'debug'
run: |
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker_image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=asset-tracker-cloud-firmware-aws.conf -DEXTRA_CFLAGS="-Werror=format-truncation"'
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker-image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=asset-tracker-cloud-firmware-aws.conf -DEXTRA_CFLAGS="-Werror=format-truncation"'
- name: Copy firmware
run: |
Expand Down Expand Up @@ -377,11 +377,11 @@ jobs:
password: ${{ secrets.CR_PAT }}

- name: Pull Docker image
run: docker pull ${{ needs.docker.outputs.docker_image }}
run: docker pull ${{ needs.docker.outputs.docker-image }}

- name: Build
run: |
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker_image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG="overlay-debug.conf;asset-tracker-cloud-firmware-aws.conf" -DEXTRA_CFLAGS="-Werror=format-truncation"'
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker-image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG="overlay-debug.conf;asset-tracker-cloud-firmware-aws.conf" -DEXTRA_CFLAGS="-Werror=format-truncation"'
cp build/zephyr/merged.hex firmware.hex
cp prj.conf firmware.conf
Expand All @@ -392,7 +392,7 @@ jobs:
env.DEVICE_ID }}
run: |
echo "CONFIG_ASSET_TRACKER_V2_APP_VERSION=\"${{ env.APP_VERSION }}-upgraded\"" >> prj.conf
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker_image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG="overlay-debug.conf;asset-tracker-cloud-firmware-aws.conf" -DEXTRA_CFLAGS="-Werror=format-truncation"'
docker run --rm -v ${PWD}:/workdir/ncs/firmware ${{ needs.docker.outputs.docker-image }} /bin/bash -c 'cd ncs/firmware && west update && west build -p always -b ${{ matrix.board }} -- -DOVERLAY_CONFIG="overlay-debug.conf;asset-tracker-cloud-firmware-aws.conf" -DEXTRA_CFLAGS="-Werror=format-truncation"'
cp build/zephyr/app_update.bin fota-upgrade.bin
cp prj.conf fota-upgrade.conf
Expand Down

0 comments on commit 3d6cc61

Please sign in to comment.