Skip to content

Commit

Permalink
fix: don't touch CI yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 12, 2023
1 parent e91c389 commit 6a33466
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: CI

on:
push:
# branches:
# - main
# paths:
# - ".github/workflows/ci.yml"
# - "containers/**"
# - "services/**"
# - "src/**"
# - "utilities/**"
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "containers/**"
- "services/**"
- "src/**"
- "utilities/**"

permissions:
id-token: write
Expand All @@ -20,6 +20,7 @@ env:
AWS_REGION: eu-central-1
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci
EARTHLY_TARGET: docker
EARTHLY_VERSION: 0.7.6
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
TAG: ${{ github.sha }}

Expand All @@ -34,7 +35,9 @@ jobs:
- name: Setup CI
uses: input-output-hk/catalyst-ci/actions/setup@master
with:
earthly_skip_install: "true"
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_version: ${{ env.EARTHLY_VERSION }}
- name: Discover Earthfiles
uses: input-output-hk/catalyst-ci/actions/discover@master
id: discover
Expand All @@ -50,6 +53,7 @@ jobs:
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_version: ${{ env.EARTHLY_VERSION }}
- name: Build cache
uses: input-output-hk/catalyst-ci/actions/build@master
with:
Expand All @@ -70,7 +74,7 @@ jobs:
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
earthly_version: ${{ env.EARTHLY_VERSION }}
- name: Login to ECR
uses: docker/login-action@v2
with:
Expand All @@ -81,20 +85,27 @@ jobs:
earthfile: ${{ matrix.earthfile.path }}
earthly_satellite: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
images: ${{ matrix.earthfile.images }}
publish: "false"
publish: "true"
registry: ${{ env.ECR_REGISTRY }}
tags: "${{ env.TAG }}"
target: ${{ env.EARTHLY_TARGET }}
# deploy:
# runs-on: ubuntu-latest
# needs: [discover, build]
# steps:
# - name: Deploy
# uses: input-output-hk/catalyst-ci/actions/deploy@master
# with:
# deployment_repo: input-output-hk/catalyst-world
# # NOTE: For new services being deployed, this list must be updated
# images: cat-data-service fragment-exporter migrations voting-node
# environment: dev
# tag: ${{ env.TAG }}
# token: ${{ secrets.CI_BOT_TOKEN }}
deploy:
runs-on: ubuntu-latest
needs: [discover, build]
steps:
- name: Setup CI
uses: input-output-hk/catalyst-ci/actions/setup@master
id: setup
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_version: ${{ env.EARTHLY_VERSION }}
- name: Deploy
uses: input-output-hk/catalyst-ci/actions/deploy@master
with:
deployment_repo: input-output-hk/catalyst-world
# NOTE: For new services being deployed, this list must be updated
images: cat-data-service fragment-exporter migrations voting-node
environment: dev
tag: ${{ env.TAG }}
token: ${{ steps.setup.outputs.token }}

0 comments on commit 6a33466

Please sign in to comment.