Skip to content

Commit

Permalink
Add gha
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew DeVenny <[email protected]>
  • Loading branch information
matthewdevenny committed Oct 2, 2024
1 parent a038993 commit 0afead1
Showing 1 changed file with 3 additions and 225 deletions.
228 changes: 3 additions & 225 deletions .github/workflows/image-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
cache-to: type=gha,mode=max
tags: |
ghcr.io/boxboat/${{ matrix.image.command }}:checksum
boxboat/${{ matrix.image.command }}:checksum
- name: Inspect checksum image
id: checksumImage
Expand Down Expand Up @@ -226,6 +227,7 @@ jobs:
cache-to: type=gha,mode=max
tags: |
ghcr.io/boxboat/${{ matrix.image.command }}:${{ matrix.image.version }}
boxboat/${{ matrix.image.command }}:${{ matrix.image.version }}
- name: Install regctl
if: ${{ matrix.image.version == matrix.image.latest }}
Expand All @@ -235,228 +237,4 @@ jobs:
if: ${{ matrix.image.version == matrix.image.latest }}
run: |
regctl image copy ghcr.io/boxboat/${{ matrix.image.command }}:${{ matrix.image.version }} ghcr.io/boxboat/${{ matrix.image.command }}:latest
# helm:
# strategy:
# matrix:
# version: ${{ fromJson(needs.read.outputs.result).versions.helm }}
# runs-on: ubuntu-latest
# needs: [read]
# steps:
# - uses: actions/checkout@v4
#
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Set up Buildx
# uses: docker/setup-buildx-action@v3
# with:
# buildkitd-flags: --debug
#
# - name: Build and push
# uses: docker/build-push-action@v6
# env:
# DOCKER_BUILD_RECORD_UPLOAD: false
# with:
# context: ./helm
# platforms: linux/amd64,linux/arm64
# push: true
# build-args: |
# CHECKSUM=${{ fromJson(needs.read.outputs.result).checksum.helm }}
# REPO_DIGEST=${{ fromJson(needs.read.outputs.result).digest.helm }}
# VERSION=${{ matrix.version }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# tags: |
# ghcr.io/boxboat/helm:${{ matrix.version }}
#
# - name: Install regctl
# if: ${{ fromJson(needs.read.outputs.result).latest.helm == matrix.version }}
# uses: iarekylew00t/regctl-installer@v3
#
# - name: Tag latest
# if: ${{ fromJson(needs.read.outputs.result).latest.helm == matrix.version }}
# run: |
# regctl image copy ghcr.io/boxboat/helm:${{ matrix.version }} ghcr.io/boxboat/helm:latest
#
# kubectl:
# strategy:
# matrix:
# version: ${{ fromJson(needs.read.outputs.result).versions.kubectl }}
# runs-on: ubuntu-latest
# needs: [read]
# steps:
# - uses: actions/checkout@v4
#
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Set up Buildx
# uses: docker/setup-buildx-action@v3
# with:
# buildkitd-flags: --debug
#
# - name: Build and push
# uses: docker/build-push-action@v6
# env:
# DOCKER_BUILD_RECORD_UPLOAD: false
# with:
# context: ./kubectl
# platforms: linux/amd64,linux/arm64
# push: true
# build-args: |
# CHECKSUM=${{ fromJson(needs.read.outputs.result).checksum.kubectl }}
# REPO_DIGEST=${{ fromJson(needs.read.outputs.result).digest.kubectl }}
# VERSION=${{ matrix.version }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# tags: |
# ghcr.io/boxboat/kubectl:${{ matrix.version }}
#
# - name: Install regctl
# if: ${{ fromJson(needs.read.outputs.result).latest.kubectl == matrix.version }}
# uses: iarekylew00t/regctl-installer@v3
#
# - name: Tag latest
# if: ${{ fromJson(needs.read.outputs.result).latest.kubectl == matrix.version }}
# run: |
# regctl image copy ghcr.io/boxboat/kubectl:${{ matrix.version }} ghcr.io/boxboat/kubectl:latest
#
# istioctl:
# strategy:
# matrix:
# version: ${{ fromJson(needs.read.outputs.result).versions.istioctl }}
# runs-on: ubuntu-latest
# needs: [read]
# steps:
#
# - uses: actions/checkout@v4
#
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Set up Buildx
# uses: docker/setup-buildx-action@v3
# with:
# buildkitd-flags: --debug
#
# - name: Build and push
# uses: docker/build-push-action@v6
# env:
# DOCKER_BUILD_RECORD_UPLOAD: false
# with:
# context: ./istioctl
# platforms: linux/amd64,linux/arm64
# push: true
# build-args: |
# CHECKSUM=${{ fromJson(needs.read.outputs.result).checksum.istioctl }}
# REPO_DIGEST=${{ fromJson(needs.read.outputs.result).digest.istioctl }}
# VERSION=${{ matrix.version }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# tags: |
# ghcr.io/boxboat/istioctl:${{ matrix.version }}
#
# - name: Install regctl
# if: ${{ fromJson(needs.read.outputs.result).latest.istioctl == matrix.version }}
# uses: iarekylew00t/regctl-installer@v3
#
# - name: Tag latest
# if: ${{ fromJson(needs.read.outputs.result).latest.istioctl == matrix.version }}
# run: |
# regctl image copy ghcr.io/boxboat/istioctl:${{ matrix.version }} ghcr.io/boxboat/istioctl:latest
#
# lego:
# strategy:
# matrix:
# version: ${{ fromJson(needs.read.outputs.result).versions.lego }}
# runs-on: ubuntu-latest
# needs: [read]
# steps:
# - uses: actions/checkout@v4
#
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
#
# - name: Set up Buildx
# uses: docker/setup-buildx-action@v3
# with:
# buildkitd-flags: --debug
#
# - name: Build and push
# uses: docker/build-push-action@v6
# env:
# DOCKER_BUILD_RECORD_UPLOAD: false
# with:
# context: ./lego
# platforms: linux/amd64,linux/arm64
# push: true
# build-args: |
# CHECKSUM=${{ fromJson(needs.read.outputs.result).checksum.lego }}
# REPO_DIGEST=${{ fromJson(needs.read.outputs.result).digest.lego }}
# VERSION=${{ matrix.version }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
# tags: |
# ghcr.io/boxboat/lego:${{ matrix.version }}
#
# - name: Install regctl
# if: ${{ fromJson(needs.read.outputs.result).latest.lego == matrix.version}}
# uses: iarekylew00t/regctl-installer@v3
#
# - name: Tag latest
# if: ${{ fromJson(needs.read.outputs.result).latest.lego == matrix.version}}
# run: |
# regctl image copy ghcr.io/boxboat/lego:${{ matrix.version }} ghcr.io/boxboat/lego:latest
regctl image copy boxboat/${{ matrix.image.command }}:${{ matrix.image.version }} boxboat/${{ matrix.image.command }}:latest

0 comments on commit 0afead1

Please sign in to comment.