here to everyone for survey + disable deploy CD

This commit is contained in:
Aaron Riedel 2022-06-21 20:40:27 +02:00
parent 13dc5b3c50
commit 708036b2eb
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 31 additions and 31 deletions

View file

@ -58,34 +58,34 @@ container_scanning:
stage: test stage: test
allow_failure: false allow_failure: false
deploy_dev: #deploy_dev:
stage: deploy # stage: deploy
image: debian # image: debian
before_script: # before_script:
- apt-get update -qq # - apt-get update -qq
- 'which ssh-agent || ( apt-get install -qq openssh-client )' # - 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s) # - eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY") # - ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh # - mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script: # script:
- ssh $SSH_SERVER "cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev && exit" # - ssh $SSH_SERVER "cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev && exit"
only: # only:
- dev # - dev
- merge_requests # - merge_requests
#
deploy_staging: #deploy_staging:
stage: deploy # stage: deploy
image: debian # image: debian
before_script: # before_script:
- apt-get update -qq # - apt-get update -qq
- 'which ssh-agent || ( apt-get install -qq openssh-client )' # - 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s) # - eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY") # - ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh # - mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script: # script:
- ssh $SSH_SERVER "cd /root && docker-compose pull shbot && docker-compose up -d shbot && exit" # - ssh $SSH_SERVER "cd /root && docker-compose pull shbot && docker-compose up -d shbot && exit"
only: # only:
- master # - master

2
bot.py
View file

@ -254,7 +254,7 @@ async def vote(ctx, *, arg):
await ctx.message.delete() await ctx.message.delete()
em = discord.Embed(description=arg, colour=0x00E0FF) em = discord.Embed(description=arg, colour=0x00E0FF)
em.set_author(name=ctx.author.display_name, url=discord.Embed.Empty, icon_url=ctx.author.avatar.url) em.set_author(name=ctx.author.display_name, url=discord.Embed.Empty, icon_url=ctx.author.avatar.url)
ask_msg = await ctx.send(content="||@here||",embed=em) ask_msg = await ctx.send(content="||@everyone||",embed=em)
for x in ["", "", ""]: for x in ["", "", ""]:
await ask_msg.add_reaction(x) await ask_msg.add_reaction(x)
await ask_msg.create_thread(name="Diskussion") await ask_msg.create_thread(name="Diskussion")