Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to publish image #21

Merged
merged 4 commits into from
Dec 20, 2023
Merged
Changes from 1 commit
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
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on:
push:
branches:
- develop
tags:
- "v*"

# Cancel any in-progress CI runs for a PR if it is updated
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-image:
runs-on: ubuntu-latest
environment: publish
permissions:
id-token: write
contents: write
actions: read
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Build and push image
uses: ./.github/actions/build-push
calvwang9 marked this conversation as resolved.
Show resolved Hide resolved
with:
publish: true
app-name: timelock-worker
aws-region: ${{ secrets.AWS_REGION }}
calvwang9 marked this conversation as resolved.
Show resolved Hide resolved
aws-role-arn: ${{ secrets.AWS_OIDC_IAM_ROLE_ARN }}
aws-account-number: ${{ secrets.AWS_ACCOUNT_NUMBER }}
docker-registry: aws
docker-path: builds