Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/github_actions_CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#Purpose:
#GitHub Actions is a continuous integration and continuous delivery (CI/CD)
#platform that allows to automate the build, test, and deployment pipeline. The
#platform that allows to automate the build, test, and deployment pipeline.
#The purpose of this file is to give instructions to GitHub on how to do the
#image deployment to Docker Hub.
#Author:
#Cedric H. David, 2022-2022.
#Authors:
#Cedric H. David, Alex Christopher Lim, 2022-2022.


#*******************************************************************************
Expand Down Expand Up @@ -50,6 +50,13 @@ jobs:
echo "The GitHub workspace is ${{ github.workspace }}"
echo "The shell used is $SHELL"

#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Extracting version metadata
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Login to Docker Hub
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand All @@ -66,7 +73,7 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ secrets.DOCKER_HUB_NAME }}/rrr:latest
tags: ${{ secrets.DOCKER_HUB_NAME }}/rrr:${{ steps.get_version.outputs.VERSION }}


#*******************************************************************************
Expand Down