Added more asynchronous calls to further streamline process #2014
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: Core-Portal Builds | |
on: | |
push: | |
branches: | |
- [ main, feat/Tapis-v3 ] | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Get shortsha and branch name | |
uses: actions/checkout@v3 | |
id: vars | |
run: | | |
if [ -z "$EVENT_SHA" ]; then SHORT_SHA=${GITHUB_SHA::8}; else SHORT_SHA=${EVENT_SHA::8}; fi | |
echo ::set-output name=sha_short::${SHORT_SHA} | |
BRANCH_SHORT=`git symbolic-ref --short HEAD | sed 's/[^[:alnum:]\.\_\-]/-/g'` | |
echo ::set-output name=branch_short::${BRANCH_SHORT} | |
env: | |
EVENT_SHA: ${{ github.event.client_payload.sha }} | |
- name: Print vars | |
run: | | |
echo $SHORTSHA | |
echo $BRANCH_SHORT | |
env: | |
SHORTSHA: ${{ steps.vars.outputs.sha_short }} | |
BRANCH_SHORT: ${{ steps.vars.outputs.branch_short }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./server/conf/docker | |
file: ./server/conf/docker/Dockerfile | |
push: true | |
tags: taccwma/core-portal:${{ steps.vars.outputs.branch_short }},taccwma/core-portal:${{ steps.vars.outputs.sha_short }} |