Skip to content

Publish CDT Cloud Blueprint Docker Image #2

Publish CDT Cloud Blueprint Docker Image

Publish CDT Cloud Blueprint Docker Image #2

Workflow file for this run

name: Publish CDT Cloud Blueprint Docker Image
on:
workflow_dispatch:
inputs:
tag:
description: The image's tag
required: true
default: next
jobs:
build:
name: Build and push CDT Cloud Blueprint image to Github Packages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Github Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/eclipse-cdt-cloud/cdt-cloud-blueprint:${{ github.event.inputs.tag }}
ghcr.io/eclipse-cdt-cloud/cdt-cloud-blueprint:latest