►
From YouTube: GitLab Composer Repository: Speed-run
Description
In this video we walk through how to create a project using the Composer Repository. We publish a package using the CLI and GitLab CI. And we view it in the user interface.
This follow-up issue will improve the UI: https://gitlab.com/gitlab-org/gitlab/-/issues/222469
A
Hello
I'm
Tim
I'm,
the
p.m.
for
the
package
stage
and
today
I
want
to
do
a
quick
walkthrough
of
a
new
feature.
That's
available
now
get
lab
comm
and
will
be
included
for
self
managed
instances
in
the
13.2
release,
which
is
scheduled
for
July
22nd.
So
what
we've
added
is
a
new
package
meant
support
for
a
new
package
manager
format,
we've
added
support
for
composer,
which
will
help
PHP
developers
to
use
the
get
lab
project
or
group
as
a
composer
repository,
so
you
can
publish
dependencies
here.
A
A
A
A
A
Okay,
so
we
just
updated
our
Redmayne
and
pushed
it
so
now
we're
we're
synched
I
could
see.
That's
there.
Let's
follow
along
with
the
rest
of
the
documentation.
So
now
we
have
a
project.
The
first
step
is
to
enable
the
composer
repository
so
for
that
I
could
see
that
it's
already
enabled
they
could
see
packages
and
registries
here
and
if
I
click
on
it,
I
could
see
that
we
have
the
option
to
publish
packages.
I
mentioned
earlier
that
there's
a
caveat
about
the
UI.
A
The
issue
is
that
you
don't
see
a
dedicated
tab
for
composer
dependencies
here,
we'll
be
working
that
on
that
in
milestones
13.3,
but
for
now
you
still
can
publish
and
install
dependencies
no
problem.
If
you
wanted
to
turn
this
feature
off,
what
you
could
do
is
go
to
settings
in
general,
go
to
visibility
and
then
there's
an
option
here
for
you
to
turn
off
packages
that
will
disable
the
feature.
If
you
turn
off
packages
and
the
container
registry,
it
will
actually
remove
that
navigation
item.
A
A
A
Okay
and
then
inside
the
file,
we
want
to
add
this
code.
I'll
just
copy
this
now.
The
note
here
is
to
replace
a
namespace
with
a
unique
namespace
like
your
get
lab
username
or
a
group
name:
okay,
so
let's
open
atom,
open
our
composer
dot,
JSON
file
and
we'll
replace
the
namespace
with
T
busy,
which
is
my
user
name
and
save.
A
A
A
A
A
So
to
do
that,
I'm
going
to
click
on
my
avatar
up
here
and
then
I'm
going
to
click
settings
all
this
is
a
new
window
and
then
here
we
see
access
tokens
will
call
the
we're
gonna
name
this
one
composer,
101
and
we'll
set
the
expiration
date
for
the
tenth,
and
here
are
the
different
options
for
this.
We
want
to
set
it
to
API,
which
grants
access
to
the
package
registry.
A
We
do
have
an
issue
open
that
will
add
more
granular
permissions
for
the
personal
access
token,
so
that
you
get
what
could
have
read
package
registry
and
write
package
registry,
so
you
don't
have
to
get
a
full
API
scope,
but
for
now
this
is
what
we're
limited
to
okay.
So
we
create
this
token
here
it
is
I'm
gonna
delete
this
token
after
the
demo,
so
should
be
safe
and
then
I'll
just
paste
it
in
here
for
now.
A
A
A
So
the
next
thing
that
I
wanted
to
show
quick
is:
how
could
you
do
this
okay
and
get
started
using
get
map
CI
CD,
so
one
option
here
would
be
to
say
we
have
this
quick
navigation
item
for
setting
up
CI
and
then
we
have,
you
can
apply
a
template.
So
one
nice
thing
about
about
composer
is
one
of
the
community
members.
A
Joe
Chen,
who
was
a
big
contributor
to
the
composer
repository
in
general,
also
created
a
composer
template,
and
what
this
will
do
is
automatically
fill
in
your
get
lab
environment
variables
like
your
commit
tag
and
reference
name
and
it
will
publish
a
package.
So,
let's
see
I
I'm
gonna,
add
this
template
say
I
get
that
CI
10.
A
A
Okay,
job
succeeded,
so
it
looks
like
package
created
and
see
that
there
was
a
success
code.
So
let's
go
back
to
the
package
rich
for
UI
and
I
see
a
different
option
there
that
was
published
just
17
seconds
ago.
Okay,
so
what
we
just
did
is
we
got
setup
with
composer.
We
published
a
package
using
the
command-line
NCI
there's
a
couple
of
issues,
as
this
is
an
empty
see
that
are
probably
worth
calling
out.
A
You'll
notice
that
this
says
manually
published
normally
what
happens
when
you
publish
a
package
using
CI
is
you'll
get
to
see
which
pipeline,
which
of
which
commit
was
responsible
for
them.
That's
an
issue
and
then,
like
we
mentioned,
you
also
can
cannot
see,
isolate
just
your
composer
dependencies
here.
So
that's
another
issue,
but
we'll
be
working
on
those
things
in
the
coming
milestones
and
there's
always
room
for
community
contributions
as
well.
So
that's
it.
If
you
have
any
questions,
you
can
always
feel
free
to
reach
out
to
me
at
T
rysiek
get
lab
comm.