Skip to content

Commit

Permalink
Further tweak to the GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
dotemacs committed Jul 24, 2024
1 parent 3f4f137 commit 392f52c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build_image.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
name: Build and upload docker image

permissions:
id-token: write # for JWT request
contents: read # for actions/checkout

on:
push:
branches:
- '**'
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
push:
branches:
- '**'

permissions:
id-token: write # for JWT request
contents: read # for actions/checkout

jobs:
docker-image-build:
name: docker-image-build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
with:
limit-access-to-actor: true
- uses: actions/[email protected]
- name: Checkout repo
uses: actions/[email protected]
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ vars.AWS_ROLE_TO_ASSUME }}
aws-region: eu-west-2
role-session-name: github-aws-access
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/[email protected]
Expand Down

0 comments on commit 392f52c

Please sign in to comment.