Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-software-pl committed Jun 6, 2024
1 parent 7020ab9 commit cd9fbad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/scripts/publishNuInstallationExample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ fi

rm -rf nu-installation-example-repo
git clone "https://$ACCESS_TOKEN@github.com/TouK/nussknacker-installation-example.git" nu-installation-example-repo

# Copy the folder to the cloned repository
rm -rf nu-installation-example-repo/*
cp -r examples/installation/* nu-installation-example-repo/
cd nu-installation-example-repo
git remote set-url origin "https://$ACCESS_TOKEN@github.com/TouK/nussknacker-installation-example.git"

cd nu-installation-example-repo
rm -rf ./*
cp -r ../examples/installation/* .
echo "NUSSKNACKER_VERSION=$NUSSKNACKER_VERSION" >> .env

git config user.email "[email protected]"
git config user.name "GitHub Actions"
git add .
# todo: version in the commit message
git commit -m "Push $NUSSKNACKER_VERSION from source repository"
git commit -m "Publishing $NUSSKNACKER_VERSION installation example"
git tag "$NUSSKNACKER_VERSION"
git push -f origin master --tags
1 change: 1 addition & 0 deletions .github/workflows/sync-installation-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ jobs:
- name: Push folder to another repository
env:
ACCESS_TOKEN: ${{ secrets.NU_INSTALLATION_EXAMPLE_PAT }}
NUSSKNACKER_VERSION: "1.15.1"
run: |
./.github/workflows/scripts/publishNuInstallationExample.sh
1 change: 1 addition & 0 deletions examples/installation/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NUSSKNACKER_VERSION=1.15.1
2 changes: 1 addition & 1 deletion examples/installation/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
### Nussknacker designer service

designer:
image: touk/nussknacker:1.15.0_scala-2.12
image: touk/nussknacker:${NUSSKNACKER_VERSION}_scala-2.12
restart: unless-stopped
environment:
CONFIG_FILE: "/opt/nussknacker/conf/application.conf,/opt/nussknacker/conf/application-customizations.conf"
Expand Down

0 comments on commit cd9fbad

Please sign in to comment.