►
From YouTube: Create a Release using .gitlab-ci.yml Part 1
Description
Update: You can now use the release keyword directly in your .gitlab-ci.yml file
https://youtu.be/YtaqZMwx7sA
Walkthrough of how to Create a Release using GitLab's CI/CD configuration file .gitlab-ci.yml and GitLab's Release CLI tool
Release CLI - https://gitlab.com/gitlab-org/release-cli/-/tree/master/docs#gitlab-release-command-line-tool
Release CLI Issues - https://gitlab.com/gitlab-org/release-cli/-/issues
Sample project - https://gitlab.com/jaime/hello
A
Hello:
everyone
today,
I'm
gonna
talk
about
you'd,
love,
release,
command
line
tool
or
release
CLI.
This
is
an
application
written
in
go
and
it's
able
to
interact
with
get
elapsed,
releases
API
through
the
command
line
and
or
using
your
CI
CDs
configuration
file,
and
this
will
basically
allow
you
to
consume
I
release
instruction
in
your
CI
configuration
file
and
you
will
be
able
to
release
your
project
automatically.
A
This
is,
as
I
said,
it
is
CLI
tool,
so
you
can
actually
run
this
from
the
command
line
and
you
can
see
what
the
options
are
for
it.
If
you,
if
you
use
it
via
in
the
CI
configuration
file,
it's
gonna
be
fall
to
some
configuration
values.
You
think
it
laps
predefined
environmental
variables,
so
you
can
take
advantage
of
all
that
to
actually
create
a
release
and
you
can
get
the
information
you
need
to
actually
create
a
release
at
the
moment.
This
this
CLI
tool
is
only
only
supports,
create
and
release.
A
We
will,
of
course,
try
to
add
functionality
in
the
future.
You
can
go
to
the
job,
sorry
to
the
projects,
issues
board
and
you
can
see
what
we're
planning
to
work
on
and
you're
always
welcome
to
add
more
more
ideas
in
there.
We
will
review
them
and
work
on
them
when
we
can
so
to
basically
to
create
a
release
like
the
documentation
says
here,
we're
actually
just
calling
the
get
labs.
It
really
is
API
releases
API.
A
So
if
we,
if
we
open
this,
we
can
see
that
basically,
these
are
the
pieces
that
are
required
attributes
that
we
need
to
actually
create
a
release
for
this
iteration.
We
try
to
keep
it
very,
very
simple,
and
at
the
moment
all
you
mean
all
you
can
do
is
add
a
name,
add
a
description
and
then
the
other
two
require
fields.
A
It's
a
tag
name
because
you're
basically
going
to
create
a
gift
tag
for
release,
and
you
need
a
reference
so
that
the
release
the
release
API
knows
which
committee
has
to
use
to
create
that
to
create
a
release.
Now,
if
I
go
back
to
here,
if
you
were
to
run
the
command
line
tool
with
like
this
and
say,
create
help
it'll
tell
you.
Okay,
these
are
the
options
and
you
can
pass
and
they
basically
match
to
what
I
just
said.
Their
releases
API.
A
All
the
configuration
flags
will
actually
default
to
to
get
lab.
Ci
is
pretty
fine
embarrassed
if
there
are
any
so,
for
example,
on
on
the
CI
a
rate
you
don't
need
to
specify
the
server
URL
or
you
don't
need
to
specify
things
like.
They
chose
the
job
token
to
authenticate
with
the
with
the
API,
because
this
values
will
actually
come
from
from
the
CI
environment.
A
A
A
And
let's
say
we
just
wanna:
let's
just
call
it.
Let's
say
we
just
want
to
create
a
release
all
right
and
that
really
CLI
is
available
by
a
get
docker
image.
So
all
you
need
to
do
is
specify
the
image.
The
docker
image
that
you
want
to
use
in
this
step
also
we're
adding
a
release
stage.
So
let's
say,
let's
just
add
it
here
and
say
release,
and
we
only
want
to
do
this
if
test
and
we'll
pass,
it's
probably
well.
A
A
A
So
we
don't
want
to
recreate
a
release
and
just
go
into
this
kind
of
like
loop
when
you
keep
creating
releases
so
in
here
in
the
script,
all
we're
gonna
do
is
say:
okay,
we're,
gonna,
call,
release,
CLI
and
we're
gonna
say
create
want
to
create
a
new
release
and,
let's
just
call
it.
Let's
say
this
is
going
to
be
version
1.0.0
and.
A
A
A
And
I
mean
time
I
would
say
you
can
just
go
back
to
this
documentation,
there's
more
information
on
how
this
Tool
Works
and
why
are
the
intended
purposes
of
using
this
there's
also
the
an
open.
This
is
the
initial
issue
with
all
this
conversation
started
and
how
we
decided
to
make
this
work.
So
you're
welcome
to
go
through
that
and,
like
I
said,
if
you,
if
you
have
more
ideas
or
if
you
find
any
issues,
please
report
this
today
to
the
issue
board
and
yeah,
we'll
try
to
work
on
on
that.
A
A
A
As
you
can
see,
we
just
call
these
are
exactly
the
same
steps
that
we
added
to
towards
CI
a
step,
and
we
can
see
we
are
trying
to
create
a
release.
This
is
just
log
information
and
we
can
see
the
tag
we
define.
The
name
is
V,
0
1
would
be
1,
0
0,
and
this
Anu
release
you
saying
they
release
a
li
and
then
some
more
information
right.
So,
if
I
actually
go
into
my
project
releases,
I
should
be
able
to
see
it.
There
really
easy.