Skip to content

Commit

Permalink
fix: attempt to fix release for soda
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhallcs committed Mar 1, 2023
1 parent 3e0eda2 commit 317ad97
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
goreleaser:
if: ${{ github.repository == 'benthosdev/benthos' }}
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -76,12 +77,6 @@ jobs:
- name: Build
run: make deps

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Install Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -102,38 +97,13 @@ jobs:
- name: auth to gcr
run: gcloud auth configure-docker us-docker.pkg.dev -q

- name: Docker meta CGO
id: docker_meta_cgo
uses: crazy-max/ghaction-docker-meta@v2
with:
images: sodahealth/benthos
flavor: |
latest=auto
suffix=-cgo
tags: |
type=semver,suffix=-cgo,pattern={{version}}
type=semver,suffix=-cgo,pattern={{major}}.{{minor}}
type=semver,suffix=-cgo,pattern={{major}}
- name: Build and push CGO
uses: docker/build-push-action@v2
with:
context: ./
file: ./resources/docker/Dockerfile.cgo
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: ${{ steps.docker_meta_cgo.outputs.tags }}

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v2
- name: docker meta data
id: docker_meta_data
uses: docker/metadata-action@v4
with:
images: sodahealth/benthos
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=${{ github.ref_name }}
- name: Build and push
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 317ad97

Please sign in to comment.