Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/build-docker-push-to-ecr-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ on:
AWS_ROLE_NAME:
required: true
type: string
BUILD_ARGS:
required: false
type: string
BUILD_SECRETS:
required: false
type: string
description: "Docker build secret flags, e.g., --secret id=TOKEN1,env=SECRET1 --secret id=TOKEN2,env=SECRET2"
DOCKERFILE_NAME:
required: false
type: string
Expand All @@ -32,10 +39,6 @@ on:
type: boolean
default: true

secrets:
BUILD_ARG:
required: false

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -61,7 +64,7 @@ jobs:
docker build -f ${{ inputs.DOCKERFILE_NAME }} \
-t ${{ inputs.REGISTRY_URL }}/${{ inputs.APPLICATION_NAME }}:$GITHUB_SHA \
${{ inputs.BUILD_ARGS }} \
${{ secrets.BUILD_ARG }} \
${{ inputs.BUILD_SECRETS }} \
.
docker push -a ${{ inputs.REGISTRY_URL }}/${{ inputs.APPLICATION_NAME }}
- name: Retag and push container image
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-docker-push-to-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
BUILD_ARGS:
required: false
type: string
BUILD_SECRETS:
required: false
type: string
description: "Docker build secret flags, e.g., --secret id=TOKEN1,env=SECRET1 --secret id=TOKEN2,env=SECRET2"
DOCKERFILE_NAME:
required: false
type: string
Expand All @@ -35,10 +39,6 @@ on:
type: boolean
default: true

secrets:
BUILD_ARG:
required: false

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -64,7 +64,7 @@ jobs:
docker build -f ${{ inputs.DOCKERFILE_NAME }} \
-t ${{ inputs.REGISTRY_URL }}/${{ inputs.APPLICATION_NAME }}:$GITHUB_SHA \
${{ inputs.BUILD_ARGS }} \
${{ secrets.BUILD_ARG }} \
${{ inputs.BUILD_SECRETS }} \
.
docker push -a ${{ inputs.REGISTRY_URL }}/${{ inputs.APPLICATION_NAME }}
- name: Retag and push container image
Expand Down