Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Update build-authentik.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Lavish Gupta <[email protected]>
  • Loading branch information
lavishiamops authored Sep 6, 2024
1 parent 83b61ab commit 5581332
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/build-authentik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,40 @@ on:
type: string
required: true
jobs:
Build-Authentik:
name: Build Authentik Image
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
ENVIRONMENT: ${{ inputs.environment }}
steps:
- name: Checkout
uses: actions/checkout@v4
# Build-Authentik:
# name: Build Authentik Image
# runs-on: ubuntu-latest
# environment: ${{ inputs.environment }}
# env:
# ENVIRONMENT: ${{ inputs.environment }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.SCRIBE2_GITHUB_ROLE }}
role-session-name: Github
aws-region: ${{ secrets.AWS_REGION }}
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: ${{ secrets.SCRIBE2_GITHUB_ROLE }}
# role-session-name: Github
# aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
# - name: Login to Amazon ECR
# id: login-ecr
# uses: aws-actions/amazon-ecr-login@v2
# with:
# mask-password: 'true'

- name: Build, Tag and Push Authentik Image to Amazon ECR
id: build-image
run: |
DOCKER_BUILDKIT=1 docker build -t ${{ steps.login-ecr.outputs.registry }}/authentik:${{ github.sha }} .
docker push ${{ steps.login-ecr.outputs.registry }}/authentik:${{ github.sha }}
# - name: Build, Tag and Push Authentik Image to Amazon ECR
# id: build-image
# run: |
# DOCKER_BUILDKIT=1 docker build -t ${{ steps.login-ecr.outputs.registry }}/authentik:${{ github.sha }} .
# docker push ${{ steps.login-ecr.outputs.registry }}/authentik:${{ github.sha }}

Update-Environment-Variable:
if: ${{ always() && (needs.Build-Authentik.result == 'success') }}
name: Update Environment Variable with Docker Image Tag
runs-on: ubuntu-latest
needs: [Build-Authentik]
# needs: [Build-Authentik]
steps:
- name: Update Environment Variable
run: |
Expand Down

0 comments on commit 5581332

Please sign in to comment.