Skip to content

Commit

Permalink
chore(ci): auto format Github workflow .yml files (ChainSafe#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 authored Nov 16, 2021
1 parent bc4d8c4 commit a6a6ea4
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 65 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/docker-grandpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ jobs:
docker-grandpa-tests:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build

- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
Expand All @@ -24,7 +23,7 @@ jobs:
platforms: linux/amd64
push: false
tags: chainsafe/gossamer:test
-
name: Run grandpa

- name: Run grandpa
run: |
docker run chainsafe/gossamer:test sh -c "make it-grandpa"
docker run chainsafe/gossamer:test sh -c "make it-grandpa"
45 changes: 22 additions & 23 deletions .github/workflows/docker-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ env:

jobs:
docker-polkadotjs-tests:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
load: true
file: ./Dockerfile
target: builder
platforms: linux/amd64
push: false
tags: chainsafe/gossamer:test
-
name: Run polkadotjs tests
run: |
docker run chainsafe/gossamer:test sh -c "make it-polkadotjs"
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
load: true
file: ./Dockerfile
target: builder
platforms: linux/amd64
push: false
tags: chainsafe/gossamer:test

- name: Run polkadotjs tests
run: |
docker run chainsafe/gossamer:test sh -c "make it-polkadotjs"
17 changes: 8 additions & 9 deletions .github/workflows/docker-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ jobs:
docker-rpc-tests:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build

- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
Expand All @@ -24,7 +23,7 @@ jobs:
target: builder
push: false
tags: chainsafe/gossamer:test
-
name: Run rpc tests

- name: Run rpc tests
run: |
docker run chainsafe/gossamer:test sh -c "make it-rpc"
docker run chainsafe/gossamer:test sh -c "make it-rpc"
17 changes: 8 additions & 9 deletions .github/workflows/docker-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ jobs:
docker-stable-tests:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build

- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
Expand All @@ -24,7 +23,7 @@ jobs:
platforms: linux/amd64
push: false
tags: chainsafe/gossamer:test
-
name: Run stable tests

- name: Run stable tests
run: |
docker run chainsafe/gossamer:test sh -c "make it-stable"
docker run chainsafe/gossamer:test sh -c "make it-stable"
17 changes: 8 additions & 9 deletions .github/workflows/docker-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ jobs:
docker-stress-tests:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Build

- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
Expand All @@ -24,7 +23,7 @@ jobs:
platforms: linux/amd64
push: false
tags: chainsafe/gossamer:test
-
name: Run stress

- name: Run stress
run: |
docker run chainsafe/gossamer:test sh -c "make it-stress"
docker run chainsafe/gossamer:test sh -c "make it-stress"
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
- name: Checkout main
uses: actions/checkout@v2

- name: Deploy docs
Expand All @@ -18,4 +18,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: gossamer.chainsafe.io
CONFIG_FILE: docs/mkdocs.yml
EXTRA_PACKAGES: build-base
EXTRA_PACKAGES: build-base
7 changes: 3 additions & 4 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
Expand All @@ -39,20 +39,19 @@ jobs:
docker build -f=Dockerfile.staging . --progress=plain -t=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg chain=$CHAIN --build-arg DD_API_KEY=$DD_API_KEY
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
- name: Render Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: .github/workflows/staging/${{ matrix.chain }}-taskdef.json
container-name: gossamer-${{ matrix.chain }}
image: ${{ steps.build-image.outputs.image }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: gossamer-${{ matrix.chain }}-svc
cluster: gossamer-stg
wait-for-service-stability: true

0 comments on commit a6a6ea4

Please sign in to comment.