Sync beta repository in the CI process (#3548)

* Sync servers after repository is updated

* Update build-train.yml

* Sync servers before building images
This commit is contained in:
Igor Pečovnik 2022-03-22 01:12:09 +01:00 committed by GitHub
parent fbfde88d40
commit d81155f331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 5 deletions

View File

@ -34,9 +34,25 @@ jobs:
path: changes
name: changes
if-no-files-found: ignore
sync-servers:
name: "Sync servers"
needs: [ fake]
if: ${{ github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/sync-servers.yml@master
with:
KEY_ID: 'upload'
secrets:
KEY_UPLOAD: ${{ secrets.KEY_UPLOAD }}
USER_REPOSITORY: ${{ secrets.USER_REPOSITORY }}
HOST_REPOSITORY: ${{ secrets.HOST_REPOSITORY }}
KNOWN_HOSTS_REPOSITORY: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}
merge:
needs: [ fake ]
needs: [ sync-servers ]
uses: armbian/scripts/.github/workflows/merge-from-branch.yml@master
with:

View File

@ -229,6 +229,21 @@ jobs:
HOST_REPOSITORY: ${{ secrets.HOST_REPOSITORY }}
KNOWN_HOSTS_REPOSITORY: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}
sync-servers:
name: "Sync servers"
needs: [apt-armbian-com,beta-armbian-com]
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/sync-servers.yml@master
with:
KEY_ID: 'upload'
secrets:
KEY_UPLOAD: ${{ secrets.KEY_UPLOAD }}
USER_REPOSITORY: ${{ secrets.USER_REPOSITORY }}
HOST_REPOSITORY: ${{ secrets.HOST_REPOSITORY }}
KNOWN_HOSTS_REPOSITORY: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}
##########################################################################################
# #
# Build x86 CLI images #
@ -236,7 +251,7 @@ jobs:
##########################################################################################
x86-cli-images:
needs: [apt-armbian-com,beta-armbian-com]
needs: [apt-armbian-com,beta-armbian-com,sync-servers]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
with:
@ -266,7 +281,7 @@ jobs:
##########################################################################################
x86-desktop-images:
needs: [apt-armbian-com,beta-armbian-com]
needs: [apt-armbian-com,beta-armbian-com,sync-servers]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
with:
@ -296,7 +311,7 @@ jobs:
##########################################################################################
cli-images:
needs: [apt-armbian-com,beta-armbian-com]
needs: [apt-armbian-com,beta-armbian-com,sync-servers]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
with:
@ -326,7 +341,7 @@ jobs:
##########################################################################################
desktop-images:
needs: [apt-armbian-com,beta-armbian-com]
needs: [apt-armbian-com,beta-armbian-com,sync-servers]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
with: