fix/ci-only-on-pr #1
@@ -45,16 +45,6 @@ jobs:
|
|||||||
")
|
")
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Commit version bump
|
|
||||||
run: |
|
|
||||||
git config user.name "lunarfront-bot"
|
|
||||||
git config user.email "bot@lunarfront.tech"
|
|
||||||
git remote set-url origin https://lunarfront-bot:${{ secrets.BOT_TOKEN }}@git.lunarfront.tech/ryan/lunarfront-app.git
|
|
||||||
git add packages/backend/package.json
|
|
||||||
git commit -m "chore: bump version to v${{ steps.version.outputs.version }}"
|
|
||||||
git pull --rebase origin main
|
|
||||||
git push origin main
|
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.lunarfront.tech -u ryan --password-stdin
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.lunarfront.tech -u ryan --password-stdin
|
||||||
|
|
||||||
@@ -85,6 +75,16 @@ jobs:
|
|||||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:$SHA
|
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:$SHA
|
||||||
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:latest
|
docker push registry.lunarfront.tech/ryan/lunarfront-frontend:latest
|
||||||
|
|
||||||
|
- name: Commit version bump
|
||||||
|
run: |
|
||||||
|
git config user.name "lunarfront-bot"
|
||||||
|
git config user.email "bot@lunarfront.tech"
|
||||||
|
git remote set-url origin https://lunarfront-bot:${{ secrets.BOT_TOKEN }}@git.lunarfront.tech/ryan/lunarfront-app.git
|
||||||
|
git add packages/backend/package.json
|
||||||
|
git commit -m "chore: bump version to v${{ steps.version.outputs.version }}"
|
||||||
|
git pull --rebase origin main
|
||||||
|
git push origin main
|
||||||
|
|
||||||
- name: Logout
|
- name: Logout
|
||||||
if: always()
|
if: always()
|
||||||
run: docker logout registry.lunarfront.tech
|
run: docker logout registry.lunarfront.tech
|
||||||
|
|||||||
Reference in New Issue
Block a user