Skip to content

Commit

Permalink
Merge pull request #21 from quotly-eu/feature/rest-endpoints
Browse files Browse the repository at this point in the history
Feature/rest endpoints
  • Loading branch information
dotnomi authored Nov 7, 2024
2 parents 4ca4f25 + ec12a74 commit fcffbaa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,17 @@ jobs:
BUILD_NUMBER=$(echo $GITHUB_RUN_NUMBER)
DOCKER_IMAGE_TAG="${DATE_TAG}.${BUILD_NUMBER}"
DOCKER_IMAGE_NAME="ghcr.io/${REPOSITORY_OWNER}/quotly-release"
PACKAGE_REGISTRY="quotly-release"
else
BUILD_NUMBER=$(echo $GITHUB_RUN_NUMBER)
DOCKER_IMAGE_TAG="${BRANCH_NAME}.${BUILD_NUMBER}"
DOCKER_IMAGE_NAME="ghcr.io/${REPOSITORY_OWNER}/quotly-staging"
PACKAGE_REGISTRY="quotly-staging"
fi
echo "DOCKER_IMAGE_TAG=$DOCKER_IMAGE_TAG" >> $GITHUB_ENV
echo "DOCKER_IMAGE_NAME=$DOCKER_IMAGE_NAME" >> $GITHUB_ENV
echo "PACKAGE_REGISTRY=$PACKAGE_REGISTRY" >> $GITHUB_ENV
- name: Build backend
run: |
Expand Down Expand Up @@ -143,4 +146,10 @@ jobs:
if: endsWith(env.DOCKER_IMAGE_NAME, 'staging')
run: |
chmod +x cleanup_docker_images.sh
./cleanup_docker_images.sh ${{ github.repository_owner }} quotly-staging ${{ secrets.QUOTLY_TOKEN }} 5
./cleanup_docker_images.sh ${{ github.repository_owner }} quotly-staging ${{ secrets.QUOTLY_TOKEN }} 5
- name: Add Summary
run: |
sed -i "s/@PACKAGE_REGISTRY@/${{ env.PACKAGE_REGISTRY }}/g" build_summary.md
sed -i "s/@DOCKER_IMAGE_TAG@/${{ env.DOCKER_IMAGE_TAG }}/g" build_summary.md
cat build_summary.md >> $GITHUB_STEP_SUMMARY
8 changes: 8 additions & 0 deletions build_summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Quotly summary

---
### Information about the built Docker Image:

| Package Registry | Docker Image Tag |
|--------------------|--------------------|
| @PACKAGE_REGISTRY@ | @DOCKER_IMAGE_TAG@ |

0 comments on commit fcffbaa

Please sign in to comment.