Skip to content

Update to ModusToolbox 3.2 #5

Update to ModusToolbox 3.2

Update to ModusToolbox 3.2 #5

Workflow file for this run

name: Build and push Docker image
on:
push:
branches: [ master ]
env:
REGISTRY: docker.io
IMAGE_NAME: vmmedvid/modustoolbox
MTB_TAG: mtb32
jobs:
build-and-push-image:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
${{ env.MTB_TAG }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}