Skip to content

rstijerina is building Docker Image for APCD CMS on branch rstijerina #277

rstijerina is building Docker Image for APCD CMS on branch rstijerina

rstijerina is building Docker Image for APCD CMS on branch rstijerina #277

Workflow file for this run

name: APCD CMS Builds
run-name: ${{ github.actor }} is building Docker Image for APCD CMS on branch ${{ github.actor }}
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "apcd-cms/**"
jobs:
build_commit:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apcd-cms
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set shortsha and branch environment variables
run: |
echo "BRANCH_NAME=$(echo ${GITHUB_REF_NAME} | sed 's/[^[:alnum:]\.\_\-]/-/g')" >> "$GITHUB_ENV";
echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_ENV";
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & push commit tagged Docker image
uses: docker/build-push-action@v5
with:
context: apcd-cms
push: true
tags: taccwma/apcd-cms:$SHORT_SHA,taccwma/apcd-cms:$BRANCH_NAME