Skip to content

Commit

Permalink
chore(infra): add a seed job for building releases for ampd and fix n…
Browse files Browse the repository at this point in the history
…aming for building main branch ecr image (#269)

* chore(infra): add a seed job for building releases for ampd and fix naming for building main branch ecr image

* chore: add codeowners for infra and devops related files

* - fix versions for build jobs

Co-authored-by: Milap Sheth <[email protected]>

---------

Co-authored-by: Milap Sheth <[email protected]>
  • Loading branch information
Talal Ashraf and milapsheth authored Feb 13, 2024
1 parent 9de4d9e commit 69e7bf0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
# Each line is a file pattern followed by one or more owners.

* @axelarnetwork/core
.github/workflows/* @axelarnetwork/devops
.github/actions/* @axelarnetwork/devops
**/Dockerfile @axelarnetwork/devops
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Build and push latest docker image
name: Amplifier - Build main branch

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-and-push-latest-docker-image:
strategy:
matrix:
os:
- ubuntu-20.04
runs-on: ${{ matrix.os }}
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -44,6 +41,7 @@ jobs:
- uses: docker/setup-buildx-action@v3
if: steps.image-tag-check.outputs.image_tag_exists == 0

- uses: docker/build-push-action@v5
if: steps.image-tag-check.outputs.image_tag_exists == 0
env:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/build-ampd-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Amplifier - Build Release

on:
workflow_dispatch:
inputs:
tag:
description: Github tag to release binaries for (reusing an existing tag will make the pipeline fail)
required: true
default: latest

jobs:
release-binaries:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
arch: [amd64, arm64]

permissions:
contents: write
packages: write
id-token: write

steps:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/ghwf-${{ github.event.repository.name }}

0 comments on commit 69e7bf0

Please sign in to comment.