Skip to content

Commit

Permalink
fix: Separate workflow for rollout
Browse files Browse the repository at this point in the history
[FBTLOPS-159]
  • Loading branch information
mralexandernickel committed Feb 16, 2021
1 parent 237d11d commit 641dbca
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
on: [push]
name: build
on: push

env:
CONTAINER_MANAGER: podman
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish
on:
release:
types: [published]
name: publish
on: release

env:
CONTAINER_MANAGER: podman
AWS_ACCOUNT_ID: 700707183175
Expand All @@ -23,9 +22,3 @@ jobs:
aws-region: ${{env.AWS_DEFAULT_REGION}}
- uses: aws-actions/amazon-ecr-login@v1
- run: make publish
- run: aws --region eu-central-1 eks update-kubeconfig --name eks-production
- uses: azure/setup-helm@v1
with:
version: '2.14.0'
- run: helm ls
- run: make rollout
32 changes: 32 additions & 0 deletions .github/workflows/rollout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: rollout
on:
workflow_run:
workflows: ["publish"]
types:
- completed

env:
CONTAINER_MANAGER: podman
AWS_ACCOUNT_ID: 700707183175
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-central-1
REPOSITORY_NAME: flagbit/technology-radar

jobs:
publish:
name: Rollout Latest Release to EKS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{env.AWS_ACCESS_KEY_ID}}
aws-secret-access-key: ${{env.AWS_SECRET_ACCESS_KEY}}
aws-region: ${{env.AWS_DEFAULT_REGION}}
- run: aws --region eu-central-1 eks update-kubeconfig --name eks-production
- uses: azure/setup-helm@v1
with:
version: '2.14.0'
- run: helm ls
- run: make rollout

0 comments on commit 641dbca

Please sign in to comment.