►
From YouTube: Release description from file using the release-cli
Description
Read a release description from a file inside your project using the release-cli.
- Issue https://gitlab.com/gitlab-org/release-cli/-/issues/14
- MR in progress https://gitlab.com/gitlab-org/release-cli/-/merge_requests/67
- Sample project https://gitlab.com/jaime/hello/-/blob/v1.13.0-rc1/.gitlab/ci/release-from-tag-cli-only.yml#L43
A
All
right,
so
the
idea
of
using
a
description
file
in
this
release
is
something
that
we
can
achieve
already,
but
at
the
moment
it
actually
requires
a
previous
job
to
generate
this
description
file.
Somehow
and
in
this
example,
it's
just
a
script
using
a
file
that
does
something
and
then
puts
it
into
a
distributed
description,
txt
file
right
now.
The
idea
here
well,
the
problem
here
is
there-
is
really
cli
needs
to
get
this
file
using
export,
exporting
this
into
an
environment
variable.
A
So,
for
example,
here
it's
just
saying
cap
this
file
into
this
variable,
and
then
we
can
just
use
the
variable
here
right
now.
The
idea
of
this
is
to
actually
don't
need
to
use
the
environment
variable
anymore
and
just
say
description,
xp
and
yeah.
We
shouldn't
we
don't
need
to
use
this
anymore.
No,
I'm
just
gonna
keep
it
here
and,
as
you
can
see,
I
had
already
use
this
image,
so
what
I
did
is
just
take.
A
I
used
that
and
my
from
next
to
actually
put
it
into
my
fork
of
this
project,
and
then
I
can
just
call
it
in
there
with
this
cli
and
save
okay.
So
what
we're
gonna
do
is:
let's
just
connect
this.
A
A
It
should
be
a
timeline
running.
That's
going
to
generate
this
release,
so
the
prepare
stage
stays
the
same.
It's
just
going
to
create
this
release,
file
that
we
actually
saw
in
this
step
here,
yeah
and
the
idea
once
this
is
done-
and
here
is
the
release
here.
I
should
just
grab
this.
A
There
might
have
been
an
issue
generating
the
file,
so
I
need
to
do
this
again
anyway.
Let's
see
this
should
be
running
oh
come
on.
I
just
want
to
click
on
it:
okay,
yeah
cool,
so
we
can
see
the
release.
Cli
is
taking
the
release
description
as
a
text
file,
and
if
we
look
at
this
lock
line,
we
can
see
that
this
description
is
actually
saying
well,
using
what
we
told
it
to
do
from
the
files.
A
If
I
go
into
the
releases
page
for
release
candidate,
one
yeah,
we
can
see
v113
rc1
and
we
can
see
here.
The
description
is
already
saying:
pull
the
new
image
using
tag,
or
this,
as
we
saw
there,
was
an
issue
generating
this
file.
But
basically,
this
is
the
feature
I'm
just
specifying
file
as
part
of
my
ci
job
like
this,
then
not
having
to
do
this
complicated
thing
of
catting
and
exporting
into
an
environment.
Variable.