From 558133235e29f03fd967a8a4415bc7c98f87fd23 Mon Sep 17 00:00:00 2001 From: Lavish Gupta <146554957+lavishiamops@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:44:00 +0530 Subject: [PATCH] Update build-authentik.yml Signed-off-by: Lavish Gupta <146554957+lavishiamops@users.noreply.github.com> --- .github/workflows/build-authentik.yml | 52 +++++++++++++-------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build-authentik.yml b/.github/workflows/build-authentik.yml index e2e0c96543d5..5518fd19028b 100644 --- a/.github/workflows/build-authentik.yml +++ b/.github/workflows/build-authentik.yml @@ -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: |