Fix ci process for tags and remove AWS deploy #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push OpenHIM Console Docker Image On Tag | |
on: | |
push: | |
tags: ['*'] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Run enc script file | |
run: node -v && npm -v | |
shell: bash | |
- name: Run script file | |
env: | |
HOST: ${{ secrets.HOST }} | |
working-directory: ./packaging/import-maps-server | |
run: | | |
chmod +x ./build.sh | |
./build.sh ${{ env.RELEASE_VERSION }} | |
- name: Docker Push | |
run: docker push ${{ env.IMAGE_ID }} |