Skip to content

Commit

Permalink
Merge pull request #535 from AlexsLemonade/jashapiro/tagged-release-d…
Browse files Browse the repository at this point in the history
…ocker

Add tagged push to all docker release
  • Loading branch information
jashapiro authored Jun 18, 2024
2 parents 002e013 + d1c7b57 commit 8ec8fa0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build-push-docker-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
description: "Push to AWS ECR"
type: boolean

permissions:
id-token: write
contents: read

jobs:
build-push:
name: Build and Push Docker Image
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/docker_all-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
# This workflow will run on:
# - Manual trigger
# - Periodic scheduled runs
# - Tagged version releases

name: Build all Docker images
on:
schedule:
# run monthly on the 1st
- cron: "0 0 1 * *"
push:
# build and push all on tagged release
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
push-ecr:
Expand All @@ -34,7 +39,7 @@ jobs:
uses: ./.github/workflows/build-push-docker-module.yml
with:
module: ${{ matrix.module }}
push-ecr: ${{ inputs.push-ecr }}
push-ecr: ${{ github.event_name == 'push' || inputs.push-ecr }}

check-jobs:
name: Check Job Status
Expand Down

0 comments on commit 8ec8fa0

Please sign in to comment.