Skip to content

Commit

Permalink
try deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 4, 2023
1 parent ac73d9d commit 7011544
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ jobs:
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/herald:buildcache
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/herald:buildcache,mode=max

# deploy:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
# needs:
# - build
# env:
# SERVER: https://api.paas.okd.cern.ch
# PROJECT: herald
# APP_NAME: herald
# steps:
# - name: Trigger redeploy
# run: >
# which sshpass
# && sshpass -p ${{ secrets.PWD }} ssh -o StrictHostKeyChecking=no ${{ secrets.USER }}@lxplus9.cern.ch
# 'oc login ${{ env.SERVER }} --token=${{ secrets.DEPLOY_TOKEN }}
# && oc project ${{ env.PROJECT }}
# && oc import-image ${{ env.APP_NAME }} --all'
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- build
env:
SERVER: https://api.paas.okd.cern.ch
PROJECT: herald
APP_NAME: herald
steps:
- name: Trigger redeploy
run: >
which sshpass
&& sshpass -p ${{ secrets.PWD }} ssh -o StrictHostKeyChecking=no ${{ secrets.USER }}@lxplus9.cern.ch
'oc login ${{ env.SERVER }} --token=${{ secrets.DEPLOY_TOKEN }}
&& oc project ${{ env.PROJECT }}
&& oc import-image ${{ env.APP_NAME }} --all'

0 comments on commit 7011544

Please sign in to comment.