Skip to content

Commit

Permalink
Merge pull request #6 from DIG-Network/release/v0.0.1-alpha.7
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.7
  • Loading branch information
MichaelTaylor3D committed Sep 9, 2024
2 parents d681d6b + 478a878 commit fc8a6fc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ jobs:
id: project-name
run: |
PROJECT_NAME=$(jq -r '.name' package.json)
if [ -z "$PROJECT_NAME" ]; then
echo "Project name not found in package.json!"
exit 1
fi
echo "PROJECT_NAME=$PROJECT_NAME" >> $GITHUB_ENV
- name: Get tag name
id: tag-name
run: |
TAGNAME=$(echo $GITHUB_REF | cut -d / -f 3)
if [ -z "$TAGNAME" ]; then
echo "TAGNAME is empty!"
exit 1
fi
echo "TAGNAME=$TAGNAME" >> $GITHUB_ENV
- name: Determine Docker Tag
Expand All @@ -48,7 +56,7 @@ jobs:
echo "DOCKER_TAG=latest-alpha" >> $GITHUB_ENV
else
echo "DOCKER_TAG=latest" >> $GITHUB_ENV
fi # Add this line to close the 'if' statement
fi
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -61,6 +69,17 @@ jobs:

- name: Build and Push Docker Image
run: |
echo "Building and pushing Docker image..."
echo "PROJECT_NAME: ${{ env.PROJECT_NAME }}"
echo "DOCKER_TAG: ${{ env.DOCKER_TAG }}"
echo "TAGNAME: ${{ steps.tag-name.outputs.TAGNAME }}"
# Ensure PROJECT_NAME, DOCKER_TAG, and TAGNAME are not empty
if [ -z "${{ env.PROJECT_NAME }}" ] || [ -z "${{ env.DOCKER_TAG }}" ] || [ -z "${{ steps.tag-name.outputs.TAGNAME }}" ]; then
echo "Error: One of the required variables is empty!"
exit 1
fi
docker build -t ${{ vars.DOCKER_NAMESPACE }}/${{ env.PROJECT_NAME }}:${{ env.DOCKER_TAG }} .
docker tag ${{ vars.DOCKER_NAMESPACE }}/${{ env.PROJECT_NAME }}:${{ env.DOCKER_TAG }} ${{ vars.DOCKER_NAMESPACE }}/${{ env.PROJECT_NAME }}:${{ steps.tag-name.outputs.TAGNAME }}
docker push ${{ vars.DOCKER_NAMESPACE }}/${{ env.PROJECT_NAME }}:${{ env.DOCKER_TAG }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.7](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.6...v0.0.1-alpha.7) (2024-09-09)

### [0.0.1-alpha.6](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.5...v0.0.1-alpha.6) (2024-09-09)

### [0.0.1-alpha.5](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.4...v0.0.1-alpha.5) (2024-09-09)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dig-content-server",
"version": "0.0.1-alpha.6",
"version": "0.0.1-alpha.7",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down

0 comments on commit fc8a6fc

Please sign in to comment.