Skip to content

Commit

Permalink
Comment out unused github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed Nov 16, 2023
1 parent 01304c3 commit 7867d20
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 93 deletions.
85 changes: 45 additions & 40 deletions .github/workflows/kubernetes.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
name: Pull Request
# We are currently using Vercel and do not have a need for a kubernets.
# Commenting this out for now, but leaving it so its easy to bring back if we
# switch away from kubernetes.

on:
pull_request:
branches:
- main

jobs:
kustomize_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
path: repo
- name: kustomize build
run: |
env -C repo/ kustomize build ./kustomize -o ../manifests.yaml
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: manifests-kustomize
path: manifests.yaml
retention-days: 1
# name: Pull Request

kubeconform:
runs-on: ubuntu-latest
needs:
- kustomize_build
strategy:
matrix:
kubernetes-version:
- 1.27.0
fail-fast: false
steps:
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: manifests-kustomize
- uses: docker://ghcr.io/yannh/kubeconform:v0.6.2@sha256:d49b233175b55c18d9a2af5e0b62249c3bc3bdd6161126655b4ad585c4b9b064
with:
entrypoint: '/kubeconform'
args: >-
-strict
-kubernetes-version="${{ matrix.kubernetes-version }}"
-summary manifests.yaml
# on:
# pull_request:
# branches:
# - main

# jobs:
# kustomize_build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
# with:
# path: repo
# - name: kustomize build
# run: |
# env -C repo/ kustomize build ./kustomize -o ../manifests.yaml
# - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# with:
# name: manifests-kustomize
# path: manifests.yaml
# retention-days: 1

# kubeconform:
# runs-on: ubuntu-latest
# needs:
# - kustomize_build
# strategy:
# matrix:
# kubernetes-version:
# - 1.27.0
# fail-fast: false
# steps:
# - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
# with:
# name: manifests-kustomize
# - uses: docker://ghcr.io/yannh/kubeconform:v0.6.2@sha256:d49b233175b55c18d9a2af5e0b62249c3bc3bdd6161126655b4ad585c4b9b064
# with:
# entrypoint: '/kubeconform'
# args: >-
# -strict
# -kubernetes-version="${{ matrix.kubernetes-version }}"
# -summary manifests.yaml
110 changes: 57 additions & 53 deletions .github/workflows/publish-container.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,59 @@
name: publish-container
# We are currently using Vercel and do not have a need for a docker container.
# Commenting this out for now, but leaving it so its easy to bring back if we
# switch away from vercel.

on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- "v*.*.*"
# name: publish-container

jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Docker meta
id: meta
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4.6.0
with:
images: |
ghcr.io/tkhq/docs
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=pr
type=semver,pattern={{version}}
type=sha,format=long
- name: Get committer date
run: |
echo "committer_date=$(git log -1 --pretty=%ct)" >> "$GITHUB_ENV"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
with:
platforms: linux/amd64,linux/arm64
build-args: |
SOURCE_DATE_EPOCH=${{ env.committer_date }}
provenance: "false"
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
# on:
# pull_request:
# branches:
# - main
# push:
# branches:
# - main
# tags:
# - "v*.*.*"

# jobs:
# docker:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout
# uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4.6.0
# with:
# images: |
# ghcr.io/tkhq/docs
# tags: |
# type=raw,value=latest,enable={{is_default_branch}}
# type=ref,event=pr
# type=semver,pattern={{version}}
# type=sha,format=long
# - name: Get committer date
# run: |
# echo "committer_date=$(git log -1 --pretty=%ct)" >> "$GITHUB_ENV"
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1
# - name: Login to GHCR
# if: github.event_name != 'pull_request'
# uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
# with:
# platforms: linux/amd64,linux/arm64
# build-args: |
# SOURCE_DATE_EPOCH=${{ env.committer_date }}
# provenance: "false"
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 7867d20

Please sign in to comment.