added variable for branch
This commit is contained in:
parent
c20c48cf76
commit
7a42fa88e9
@ -37,14 +37,14 @@ pipeline:
|
|||||||
<<: *default
|
<<: *default
|
||||||
commands:
|
commands:
|
||||||
- cd gluon
|
- cd gluon
|
||||||
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=stable GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable
|
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${CI_COMMIT_BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/${CI_COMMIT_BRANCH}
|
||||||
|
|
||||||
list_images:
|
list_images:
|
||||||
<<: *default
|
<<: *default
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p gluon/output/stable/images/factory
|
- mkdir -p gluon/output/${CI_COMMIT_BRANCH}/images/factory
|
||||||
- echo "${TARGET}" > gluon/output/stable/images/factory/${TARGET}
|
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
|
||||||
- ls -alh gluon/output/stable/images/factory
|
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@ -55,7 +55,7 @@ pipeline:
|
|||||||
from_secret: ssh-key
|
from_secret: ssh-key
|
||||||
strip_components: 2
|
strip_components: 2
|
||||||
target: /srv/fwuploads-testing/troisdorf/multi/incoming/
|
target: /srv/fwuploads-testing/troisdorf/multi/incoming/
|
||||||
source: gluon/output/stable/*
|
source: gluon/output/${CI_COMMIT_BRANCH}/*
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
TARGET:
|
TARGET:
|
||||||
|
@ -17,10 +17,10 @@ pipeline:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 120m
|
command_timeout: 120m
|
||||||
script:
|
script:
|
||||||
- ls -alh /srv/fwuploads-testing/troisdorf/multi/incoming/stable
|
- ls -alh /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
|
||||||
- rm -rf /srv/fwuploads-testing/troisdorf/multi/stable/
|
- rm -rf /srv/fwuploads-testing/troisdorf/multi/${CI_COMMIT_BRANCH}/
|
||||||
- mkdir /srv/fwuploads-testing/troisdorf/multi/stable/
|
- mkdir /srv/fwuploads-testing/troisdorf/multi/${CI_COMMIT_BRANCH}/
|
||||||
- mv /srv/fwuploads-testing/troisdorf/multi/incoming/stable/* /srv/fwuploads-testing/troisdorf/multi/stable/
|
- mv /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}/* /srv/fwuploads-testing/troisdorf/multi/${CI_COMMIT_BRANCH}/
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
@ -14,5 +14,5 @@ pipeline:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 120m
|
command_timeout: 120m
|
||||||
script:
|
script:
|
||||||
- rm -rf /srv/fwuploads-testing/troisdorf/multi/incoming/stable
|
- rm -rf /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
|
||||||
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/incoming/stable
|
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
|
||||||
|
Loading…
Reference in New Issue
Block a user