Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit committed Apr 9, 2024
1 parent 531abb4 commit de945dd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
password: ${{ secrets.B64_GCLOUD_SERVICE_ACCOUNT_JSON}}

- uses: actions/setup-go@v3

- name: Build release
run: make release

Expand Down
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,42 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
fetch-depth: 1

- name: Login to GCR
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: _json_key_base64
password: ${{ secrets.B64_GCLOUD_SERVICE_ACCOUNT_JSON}}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: otterize
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
with:
driver-opts: network=host

- uses: actions/setup-go@v3

- name: Build release
run: make release

- uses: actions/upload-artifact@v4
if: github.event_name == 'push'
with:
name: release
path: build/bin/*

- name: Build artifacts as Docker image
uses: docker/build-push-action@v2
with:
context: .
tags: ${{ env.REGISTRY }}/rolesanywhere-credential-helper:${{ github.ref_name }},otterize/rolesanywhere-credential-helper:${{ github.ref_name }},otterize/rolesanywhere-credential-helper:latest
push: true
platforms: linux/amd64,linux/arm64

0 comments on commit de945dd

Please sign in to comment.