From 3689ac1a589336ee569b67a9d2ca3f3c64eee487 Mon Sep 17 00:00:00 2001 From: Chandra Y Date: Mon, 30 Oct 2023 12:06:06 -0500 Subject: [PATCH] Create build-WI-67.yml git hub actions for new dev branch --- .github/workflows/build-WI-67.yml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build-WI-67.yml diff --git a/.github/workflows/build-WI-67.yml b/.github/workflows/build-WI-67.yml new file mode 100644 index 0000000..fb30721 --- /dev/null +++ b/.github/workflows/build-WI-67.yml @@ -0,0 +1,41 @@ +name: Build on push to bug/WI-67-connection-issues +on: + push: + branches: [ bug/WI-67-connection-issues ] + +jobs: + build_commit: + runs-on: ubuntu-latest + environment: docker + steps: + - uses: actions/checkout@v2 + - name: Get shortsha + 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} + env: + EVENT_SHA: ${{ github.event.client_payload.sha }} + - name: Print shortsha + run: | + echo $SHORTSHA + env: + SHORTSHA: ${{ steps.vars.outputs.sha_short }} + - uses: mr-smithers-excellent/docker-build-push@v3 + name: Build & push commit tagged Docker image + with: + image: ${{ secrets.DOCKERHUB_REPO }} + tag: ${{ steps.vars.outputs.sha_short }} + registry: docker.io + dockerfile: Dockerfile + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - uses: mr-smithers-excellent/docker-build-push@v3 + name: Build & push commit tagged Docker image + with: + image: ${{ secrets.DOCKERHUB_REPO }} + tag: latest + registry: docker.io + dockerfile: Dockerfile + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }}