Skip to content

version: Update to 2.7.0-rc2 #9

version: Update to 2.7.0-rc2

version: Update to 2.7.0-rc2 #9

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: NordicBuilder
password: ${{ secrets.NCS_GITHUB_PKG_WRITE_TOKEN }}
- name: Build and push Docker image
run: |
TOOLCHAIN_ID=$(../print_toolchain_checksum.sh)
docker build -t ghcr.io/${{ github.repository }}-toolchain:${{ github.ref_name }} --build-arg VERSION=$TOOLCHAIN_ID .
docker push ghcr.io/${{ github.repository }}-toolchain:${{ github.ref_name }}
working-directory: scripts/docker