Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmenon95 committed Jul 12, 2024
1 parent 5260df9 commit 176ec46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/locust-distributed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,10 @@ on:
- 'locust-distributed/**'
- .github/workflows/locust-distributed.yaml


env:
IMAGE_NAME: locust

jobs:
build-and-publish-latest:
runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2

# - name: Build image
# run: docker build --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" locust/

# - name: Log into registry
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

# - name: Push image
# run: |
# IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# docker tag $IMAGE_NAME $IMAGE_ID:latest
# docker push $IMAGE_ID:latest

steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand All @@ -54,4 +35,4 @@ jobs:
with:
context: ./locust
push: true
tags: ghcr.io/base2services/locust-distributed:snapshot_${{env.GITHUB_SHA_SHORT}}
tags: ghcr.io/base2services/locust-distributed:snapshot_${{env.GITHUB_REF_SLUG}}
2 changes: 1 addition & 1 deletion locust-distributed/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ case `echo ${LOCUST_MODE} | tr 'a-z' 'A-Z'` in

"SLAVE")
LOCUST_OPTS="--worker --master-host=${LOCUST_MASTER} --master-port=${LOCUST_MASTER_BIND_PORT} $LOCUST_OPTS"
echo "${LOCUST_OPTS}"
echo "Options: ${LOCUST_OPTS}"
if [ -z ${LOCUST_MASTER+x} ] ; then
echo "You need to set LOCUST_MASTER."
exit 1
Expand Down

0 comments on commit 176ec46

Please sign in to comment.