Skip to content

💼 Build image for Enterprise Server GHAS demo #5

💼 Build image for Enterprise Server GHAS demo

💼 Build image for Enterprise Server GHAS demo #5

name: 💼 Build image for Enterprise Server GHAS demo
on:
workflow_dispatch:
inputs:
ghes-tag:
description: "Which GHES version to tag the image with"
type: string
required: true
jobs:
build:
name: Build image for Octodemo (Enterprise Server) GHAS demo
runs-on: ubuntu-latest # use the GitHub-hosted runner to build the image
permissions:
contents: read
packages: write # for uploading the finished container
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: "images/ghes-demo.Dockerfile"
push: true
tags: ghcr.io/some-natalie/kubernoodles/octodemo:${{ github.event.inputs.ghes-tag }}