💼 Build image for Enterprise Server GHAS demo #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 }} |