Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/dev_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ on:
required: false
default: "60"


jobs:
deploy-docker-k8s:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -109,7 +108,7 @@ jobs:
- name: Validate Kubernetes for Deployment # Of course, this would not be a dry run if I had a real cluster to deploy to.
uses: docker://ghcr.io/yannh/kubeconform:latest
with:
args: "-strict -ignore-missing-schemas ops/*.yaml"
args: "-strict -ignore-missing-schemas ops/deploy.yaml ops/service.yaml ops/hpa.yaml"

- name: Upload rendered manifests as build artifacts
uses: actions/upload-artifact@v4
Expand All @@ -119,3 +118,26 @@ jobs:
ops/deploy.yaml
ops/service.yaml
ops/hpa.yaml

- name: Set up Docker Buildx
if: github.event.inputs.push_to_dockerhub == 'true'
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
if: github.event.inputs.push_to_dockerhub == 'true'
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push image
if: github.event.inputs.push_to_dockerhub == 'true'
uses: docker/build-push-action@v6
with:
context: .
push: true
build-args: |
BASE_IMAGE=${{ github.event.inputs.base_image }}
tags: |
sadminriley/${{ github.event.inputs.name }}:latest
sadminriley/${{ github.event.inputs.name }}:${{ github.run_number }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Still in LTS as of june '24. python2 support isn't a thing in 26.04(ubuntu:latest) either
FROM ubuntu:22.04
ARG BASE_IMAGE=ubuntu:22.04
FROM ${BASE_IMAGE}


ENV DEBIAN_FRONTEND=noninteractive \
Expand Down
Loading