Skip to content

Commit 39dfdd3

Browse files
committed
feat(apcd): workflow for "-" → "_" rename
1 parent ec7a31c commit 39dfdd3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/apcd-cms-with-_.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: APCD CMS (with Underscore) Builds
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "apcd_cms/**"
8+
9+
jobs:
10+
build_commit:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: apcd_cms
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set shortsha and branch environment variables
20+
id: vars
21+
run: |
22+
echo "BRANCH_NAME=$(echo ${GITHUB_REF_NAME} | sed 's/[^[:alnum:]\.\_\-]/-/g')" >> "$GITHUB_OUTPUT";
23+
echo "SHORT_SHA=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT";
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Login to Docker Hub
29+
uses: docker/login-action@v3
30+
with:
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_TOKEN }}
33+
34+
- name: Build & push commit tagged Docker image
35+
uses: docker/build-push-action@v5
36+
with:
37+
context: apcd_cms
38+
push: true
39+
tags: taccwma/apcd-cms:${{ steps.vars.outputs.SHORT_SHA }},taccwma/apcd-cms:${{ steps.vars.outputs.BRANCH_NAME }}

0 commit comments

Comments
 (0)