Skip to content

Build try-runtime base image #10

Build try-runtime base image

Build try-runtime base image #10

Workflow file for this run

name: Build try-runtime base image
on:
workflow_dispatch:
inputs:
version:
description: 'Version to fetch and build'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/nodlecode/try-runtime-cli
tags: |
type=raw,value=${{ inputs.version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
context: .
file: './base/Dockerfile'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: VERSION=${{ inputs.version }}