Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
bensolo-io committed Jul 10, 2023
1 parent ac0d465 commit 2269adf
Showing 1 changed file with 41 additions and 23 deletions.
64 changes: 41 additions & 23 deletions .github/workflows/branch-ben.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,50 @@ on:
push:
branches:
- ben

jobs:
docker-io-multiarch:
release-linux-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
- name: Set up Go
uses: actions/setup-go@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
go-version: '1.20'
cache-dependency-path: go.sum
- name: Build
run: GOOS=linux GOARCH=amd64 go build -o rollouts-plugin-trafficrouter-glooplatform-linux-amd64 .
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
images: kodacd/argo-rollouts
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ben
labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=registry,ref=kodacd/argo-rollouts:ben
# cache-to: type=inline
files: rollouts-plugin-trafficrouter-glooplatform-linux-amd64

# docker-io-multiarch:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Log in to Docker Hub
# uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
# with:
# images: kodacd/argo-rollouts
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Build and push Docker image
# uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
# with:
# context: .
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ben
# labels: ${{ steps.meta.outputs.labels }}
# # cache-from: type=registry,ref=kodacd/argo-rollouts:ben
# # cache-to: type=inline

0 comments on commit 2269adf

Please sign in to comment.