Skip to content

Commit

Permalink
Merge pull request #421 from pSchlarb/GHARefactoring
Browse files Browse the repository at this point in the history
decoupled commands for testing
  • Loading branch information
WadeBarnes committed Jul 19, 2022
2 parents 2a6a7d1 + 2201743 commit ee4521f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/reuseable_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,24 @@ jobs:
with:
name: sovtokenfees-deb
path: /tmp/tokendebs/

- run: mkdir -p ~/.ssh/

- run: sudo chmod 700 ~/.ssh

- run: echo "${{ secrets.SOVRIN_REPO_KEY }}" > ~/.ssh/sovrin_repo

- run: sudo chmod 600 ~/.ssh/sovrin_repo

- run: export host='repo.sovrin.org'

- run: export hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"

- run: ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts

- name: Publish Packages
run: |
mkdir -p ~/.ssh/
sudo chmod 700 ~/.ssh
echo "${{ secrets.SOVRIN_REPO_KEY }}" > ~/.ssh/sovrin_repo
sudo chmod 600 ~/.ssh/sovrin_repo
host='repo.sovrin.org'
hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"
ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts
./sovrin-packaging/upload_debs.py /tmp/tokendebs core ${{ inputs.REPO_COMPONENT }} --host repo.sovrin.org --ssh-key ~/.ssh/sovrin_repo
run: ./sovrin-packaging/upload_debs.py /tmp/tokendebs core ${{ inputs.REPO_COMPONENT }} --host repo.sovrin.org --ssh-key ~/.ssh/sovrin_repo

- name: Cleanup
if: always()
run: |
Expand Down

0 comments on commit ee4521f

Please sign in to comment.