Skip to content

Commit

Permalink
Fix action ref
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Jan 6, 2025
1 parent 386b2a4 commit bcbdea9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 36 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ permissions: # see this: https://docs.github.com/en/actions/using-jobs/assigning
jobs:
dev_docker_build_push:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/push
with:
environment: dev
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
go-mod-cache-path: "~/go/pkg/mod"
go-build-cache-path: "~/.cache/go-build"
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/push
with:
environment: dev
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
go-mod-cache-path: "~/go/pkg/mod"
go-build-cache-path: "~/.cache/go-build"
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}

tests:
name: Tests
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ concurrency:
jobs:
dev_docker_build_push:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/push
with:
environment: dev
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
go-mod-cache-path: "~/go/pkg/mod"
go-build-cache-path: "~/.cache/go-build"
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/push
with:
environment: dev
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
go-mod-cache-path: "~/go/pkg/mod"
go-build-cache-path: "~/.cache/go-build"
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}

bootstrap:
name: Local E2E Tests
Expand Down Expand Up @@ -88,4 +90,3 @@ jobs:
run: |
go run build/ci.go install
go test $(go list ./... | grep -v 'go-ethereum/tests/immutable') -p 1 --parallel 4 -timeout=30m
28 changes: 15 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,21 @@ jobs:
sandbox_docker_build_push:
name: "Testnet: Release"
needs: [setup, dev_validate]
uses: ./.github/actions/push
with:
environment: sandbox
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
sandbox-semver: true
push-git-tag: false
git-release-tag: ${{ needs.setup.outputs.tag_name }}
ghcr-semver-only-tag: false # prod release to deploy non-prefixed image
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/push
with:
environment: sandbox
dockerfile: "Dockerfile"
role-to-assume: "arn:aws:iam::783421985614:role/immutable-nonprod-docker-image-push"
role-session-name: "go-ethereum-immutable-nonprod-docker-image-push"
aws-region: "us-east-2"
sandbox-semver: true
push-git-tag: false
git-release-tag: ${{ needs.setup.outputs.tag_name }}
ghcr-semver-only-tag: false # prod release to deploy non-prefixed image
secrets:
github-token: ${{ secrets.PLATFORM_SA_GITHUB_TOKEN }}

sandbox_images:
name: "Testnet: Rollout"
Expand Down

0 comments on commit bcbdea9

Please sign in to comment.