fix(ping/rust): Use refs/heads/master and not branch and master (#81)
* fix(ping/rust): Use refs/heads/master and not branch and master Follows suggestion in https://github.com/libp2p/test-plans/pull/79#discussion_r1030425774.
This commit is contained in:
parent
0ea1553b2c
commit
a2d38ccbbe
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
[groups.build_config.build_args]
|
[groups.build_config.build_args]
|
||||||
BINARY_NAME = '{{ .BinaryName }}'
|
BINARY_NAME = '{{ .BinaryName }}'
|
||||||
GIT_REF = "master"
|
GIT_REF = "refs/heads/master"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $.Env.GitReference }}
|
{{ if $.Env.GitReference }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ ARG GIT_TARGET=""
|
||||||
RUN if [ ! -z "${GIT_TARGET}" ]; then sed -i "s,^git.*,git = \"https://${GIT_TARGET}\"," ./plan/Cargo.toml; fi
|
RUN if [ ! -z "${GIT_TARGET}" ]; then sed -i "s,^git.*,git = \"https://${GIT_TARGET}\"," ./plan/Cargo.toml; fi
|
||||||
|
|
||||||
ARG GIT_REF=""
|
ARG GIT_REF=""
|
||||||
RUN if [ "master" = "${GIT_REF}" ]; then sed -i "s/^rev.*/branch= \"master\"/" ./plan/Cargo.toml; elif [ ! -z "${GIT_REF}" ]; then sed -i "s/^rev.*/rev = \"${GIT_REF}\"/" ./plan/Cargo.toml; fi
|
RUN if [ ! -z "${GIT_REF}" ]; then sed -i "s,^rev.*,rev = \"${GIT_REF}\"," ./plan/Cargo.toml; fi
|
||||||
|
|
||||||
COPY ./plan/${PLAN_PATH}/src/lib.rs ./plan/src/lib.rs
|
COPY ./plan/${PLAN_PATH}/src/lib.rs ./plan/src/lib.rs
|
||||||
COPY ./plan/${PLAN_PATH}/src/bin/ ./plan/src/bin/
|
COPY ./plan/${PLAN_PATH}/src/bin/ ./plan/src/bin/
|
||||||
|
|
Loading…
Reference in New Issue