Skip to content

Commit

Permalink
(chore) Update deploy process to trigger Bamboo build (openmrs#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher authored and jnsereko committed Oct 5, 2022
1 parent 69148e4 commit af8dbd8
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,35 +89,17 @@ jobs:
deploy_app_shell:
runs-on: ubuntu-latest

env:
ESM_NAME: "@openmrs/esm-app-shell"

needs: pre_release

if: ${{ github.event_name == 'push' }}

steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Compute Timestamp
run: echo "TIMESTAMP=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Prepare Directory
shell: bash
run: |
mkdir -p dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}
mkdir -p dist/${{ env.ESM_NAME }}/latest
cp -r packages/shell/esm-app-shell/dist/ dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/
cp -r packages/shell/esm-app-shell/dist/ dist/${{ env.ESM_NAME }}/latest/
- name: Publish to Digital Ocean
uses: jakejarvis/s3-sync-action@master
- name: Trigger RefApp Build
uses: fjogeleit/http-request-action@master
with:
args: --acl public-read --follow-symlinks --cache-control "max-age=31536000"
env:
AWS_S3_BUCKET: ${{ secrets.DIGITAL_OCEAN_SPACES_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.DIGITAL_OCEAN_SPACES_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DIGITAL_OCEAN_SPACES_ACCESS_KEY }}
AWS_S3_ENDPOINT: ${{ secrets.DIGITAL_OCEAN_SPACES_ENDPOINT }}
SOURCE_DIR: "dist"
url: https://ci.openmrs.org/rest/api/latest/queue/REFAPP-D3X
method: "POST"
customHeaders: '{ "Authorization": "Bearer ${{ secrets.BAMBOO_TOKEN }}" }'

release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit af8dbd8

Please sign in to comment.