Skip to content

Commit

Permalink
e2e: move tag determination logic into the e2e Github workflows. (cos…
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton authored Dec 2, 2022
1 parent 1986aaf commit e7c3427
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ on:
- "**.md"
- "LICENSE"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ibc-go-simd

jobs:
determine-image-tag:
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
Expand All @@ -31,9 +27,14 @@ jobs:
go-version: 1.18
- id: get-tag
run: |
tag=$(go run cmd/determine_simd_tag/main.go -pr "${{ github.event.pull_request.number }}" )
echo "Using tag $tag"
echo "simd-tag=$tag" >> $GITHUB_OUTPUT
if [ -z "${{ github.event.pull_request.number }}" ]
then
echo "simd-tag=main" >> $GITHUB_OUTPUT
else
tag="pr-${{ github.event.pull_request.number }}"
echo "Using tag $tag"
echo "simd-tag=$tag" >> $GITHUB_OUTPUT
fi
e2e:
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
needs:
Expand Down
26 changes: 0 additions & 26 deletions cmd/determine_simd_tag/main.go

This file was deleted.

0 comments on commit e7c3427

Please sign in to comment.