Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) Update deploy process to trigger Bamboo build #544

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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