forked from hashicorp/vault-secrets-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds an artificial delay to the VSO. Some services (such as AWS IAM) are eventually consistent and require some time between generating the secret, and using the secret. Without this delay our services can't access AWS for a short while immediately after the secret rotation happens.
- Loading branch information
Showing
3 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Docker Build and Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'salesloft/*' | ||
|
||
jobs: | ||
build-pre-checks: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
go-version: ${{ steps.setup-go.outputs.go-version }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- id: setup-go | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: .go-version | ||
|
||
vso-docker-build-push: | ||
runs-on: ubuntu-22.04 | ||
needs: [build-pre-checks] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract branch name | ||
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/salesloft/}" >> $GITHUB_ENV | ||
|
||
- name: Setup Docker BuildX | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build & Push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
platforms: linux/amd64 | ||
push: true | ||
file: Dockerfile | ||
build-args: | | ||
GO_VERSION: ${{ needs.build-pre-checks.outputs.go-version }} | ||
tags: salesloft/vault-secrets-operator:${{ env.BRANCH_NAME }}-salesloft | ||
|
||
- name: Image digest | ||
run: echo "Image - vault-secrets-operator:${{ env.BRANCH_NAME }}-salesloft" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters