Skip to content
Snippets Groups Projects
Commit ab84002f authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

try checkout

parent 7a796ed8
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,10 @@ variables: ...@@ -5,10 +5,10 @@ variables:
pkg_name: "$CI_PROJECT_NAME" pkg_name: "$CI_PROJECT_NAME"
ssh_private_key: "$SSH_PRIVATE_KEY" ssh_private_key: "$SSH_PRIVATE_KEY"
ssh_known_host: "$SSH_KNOWN_HOSTS" ssh_known_host: "$SSH_KNOWN_HOSTS"
pkg_target: "$CI_COMMIT_REF_NAME"
# followed variable are ignored but # followed variable are ignored but
# need to be set # need to be set
pkg_track: "branch" pkg_track: "branch"
pkg_target: "$CI_COMMIT_REF_NAME"
pkg_address: "$CI_PROJECT_URL" pkg_address: "$CI_PROJECT_URL"
stages: stages:
......
...@@ -73,6 +73,9 @@ git clone git@${CI_SERVER_HOST}:/${CI_PROJECT_PATH}.git ...@@ -73,6 +73,9 @@ git clone git@${CI_SERVER_HOST}:/${CI_PROJECT_PATH}.git
out_trace "Cd to ${CI_PROJECT_NAME}" out_trace "Cd to ${CI_PROJECT_NAME}"
cd ${CI_PROJECT_NAME} cd ${CI_PROJECT_NAME}
out_trace "Checkout to branch ${pkg_target}"
git checkout ${pkg_target} || die "Unable to checkout to ${pkg_target}"
out_trace "Retrieve pkgver and pkgrel variables from PKGBUILD" out_trace "Retrieve pkgver and pkgrel variables from PKGBUILD"
source trunk/PKGBUILD source trunk/PKGBUILD
......
...@@ -8,13 +8,13 @@ pkgbase=dockerd ...@@ -8,13 +8,13 @@ pkgbase=dockerd
pkgdepends=docker pkgdepends=docker
pkgname="${pkgbase}"-66serv pkgname="${pkgbase}"-66serv
pkgver=0.0.1 pkgver=0.0.1
pkgrel=2 pkgrel=3
pkgdesc="${pkgbase} service for 66 tools" pkgdesc="${pkgbase} service for 66 tools"
url="https://framagit.org/pkg/service/${pkgbase}-66serv.git" url="https://framagit.org/pkg/service/${pkgbase}-66serv.git"
track=branch track=branch
checkout=test-deploy target=test-deploy
source=("${pkgname}::git+${url}#${track}=${checkout}") source=("${pkgname}::git+${url}#${track}=${checkout}")
depends=( depends=(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment