Skip to content

Commit

Permalink
test: testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Nov 2, 2023
1 parent 5701856 commit f60bee3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: golang:1.20
outputs:
binver: ${{ steps.binversion.outputs.BIN_VERSION }}
env:
CGO_ENABLED: 0 # Statically linked

Expand Down Expand Up @@ -71,8 +73,8 @@ jobs:
dist/$distro/$arch/ s3://azion-downloads/$distro/$arch/; \
done < BUILD
- name: set bin_version environment variable
run: echo "BIN_VERSION=$(git describe --tags)" >> $GITHUB_ENV
- id: binversion
run: echo "BIN_VERSION=$(git describe --tags)" >> $GITHUB_OUTPUT


- uses: goreleaser/goreleaser-action@v2
Expand All @@ -86,11 +88,16 @@ jobs:
STORAGE_URL: https://storage-api.azion.com
AUTH_URL: https://sso.azion.com/api/user/me
TEMPLATE_BRANCH: main


bump_formula:
runs-on: ubuntu-latest
needs: build
steps:
- uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{secrets.RELEASE_GITHUB_TOKEN}}
formula: azion
tag: ${{ env.BIN_VERSION }}
tag: ${{needs.build.outputs.binver}}



30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to Production

on:
workflow_dispatch:
push:
branches:
- workflow

jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.20
outputs:
binver: ${{ steps.binversion.outputs.BIN_VERSION }}
env:
CGO_ENABLED: 0 # Statically linked

steps:

- id: binversion
run: echo "BIN_VERSION=$(git describe --tags)" >> $GITHUB_OUTPUT

bump_formula:
runs-on: ubuntu-latest
needs: build
steps:
- run: echo `${{needs.build.outputs.binver}}


0 comments on commit f60bee3

Please sign in to comment.