Skip to content

maxTime flag propagates to Bacalhau Job.Spec.Timeout (#636) #53

maxTime flag propagates to Bacalhau Job.Spec.Timeout (#636)

maxTime flag propagates to Bacalhau Job.Spec.Timeout (#636) #53

Workflow file for this run

name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-20.04
environment: releaser
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20.4'
cache: true
- name: Validate Plex version and tag
run: |
current_version=$(grep -oP 'CurrentPlexVersion\s*=\s*"\K[^"]+' cmd/upgrade.go)
tag_name=${GITHUB_REF#refs/tags/}
if [ "$current_version" != "$tag_name" ]; then
echo "CurrentPlexVersion in cmd/upgrade.go ($current_version) does not match tag ($tag_name)"
exit 1
else
echo "CurrentPlexVersion in cmd/upgrade.go ($current_version) matches tag ($tag_name)"
fi
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get tag name and release name
id: tag_name
run: |
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
echo "::set-output name=release::${GITHUB_REF#refs/tags/v}"
- name: Download release file
run: curl -sSL https://github.com/labdao/plex/releases/download/${{ steps.tag_name.outputs.tag }}/plex_${{ steps.tag_name.outputs.release }}_linux_amd64.tar.gz -o plex_${{ steps.tag_name.outputs.release }}_linux_amd64.tar.gz
- name: Extract release file
run: tar -xvzf plex_${{ steps.tag_name.outputs.release }}_linux_amd64.tar.gz
- name: Run Equibind
run: |
result_dir=$(./plex init -t tools/equibind.json -i '{"protein": ["testdata/binding/abl/7n9g.pdb"], "small_molecule": ["testdata/binding/abl/ZINC000003986735.sdf"]}' --scatteringMethod=dotProduct --autoRun=true -a test -a ci | grep 'Finished processing, results written to' | sed -n 's/^.*Finished processing, results written to //p' | sed 's/\/io.json//')
cd "$result_dir/entry-0/outputs"
if [ "$(find . -name '*docked.sdf' | grep 'docked.sdf')" == "" ]; then
echo "No docked files found"
exit 1
else
echo "Docked files found:"
find . -name '*docked.sdf' | grep 'docked.sdf'
fi
env:
PLEX_ACCESS_TOKEN: ${{ secrets.PLEX_ACCESS_TOKEN }}