►
Description
Jason Colyer, Support Operations Manager, takes us through setting up a repo on gitlab.com and having it mirror to an ops instance. This is specifically for when the source project (ie the one on gitlab.com) does not exist.
A
Greetings
all
names,
jason,
collier
support
operations
manager
here
at
get
lab,
and
today
I'm
going
to
cover
setting
up
a
project
in
gitlab.com
and
having
it
mirrored
to
our
ops
instance
and
everything
that's
required
here.
So
in
this
particular
case
we
have
the
project
zendesk
automations,
that
exists
on
the
ops
instance,
but
you
can
see
over
here
on
gitlab.com.
A
It
does
not
exist.
So
the
first
thing
we're
going
to
do
is
create
the
project.
Now,
since
we're
we're,
gonna
do
plank
pro
blank
projects,
and
this
is
in
regards
to
automations.
A
Now,
with
that
done,
we
have
our
project,
but
we
need
to
go
ahead
and
get
it
to
pull
this
initial
code
now
to
to
get
it
to
pull
the
initial
code.
We're
gonna
have
to
set
up
some
some
tokens,
some
access
tokens.
So
what
we're
gonna
want
to
do
is
set
up
the
access
tokens
on
the
source
or
on
the
sorry,
the
target.
So
we're
going
to
go
to
settings
access
tokens.
A
But
once
you're
done
with
that,
you
click
the
blue,
save
and
then
you'll
have
this
nice
new
token
ready
to
go
now.
What
we
would
want
to
do
is
do
the
same
thing
on
the
target
when
we
don't
actually
need
it
on
the
source
here.
So
there's
some
other
settings.
We
want
to
go
ahead
and
tweak
while
we're
here.
So
let's
go
to
repository.
A
A
Mirroring
what
we're
going
to
do
is
over
here
we're
going
to
grab
that
get
url.
We
want
the
https
version,
we're
going
to
do
a
username,
we're
pulling
from
it
and
we
need
to
give
it
the
access
token
we
generated,
and
we
we
don't
need
to
worry
about
all
this
now,
since
we're
just
pulling
the
initial
stuff.
A
We'll
go
ahead
and
make
sure
that
it's
updating
and
if
we
go
to
the
project,
there's
our
code,
so
we've
now
got
that
set
up,
so
we
can
go
back
to
our
repository
mirroring
and
we
can
get
rid
of
this
pool
mirror.
We
don't
need
it
anymore
now.
What
we
do
need
to
set
up
is
for
the
get
lab.com
instance
to
mirror
to
push
updates
over
here
over
to
the
options,
and
so
once
again
we're
going
to
set
this
up
at
this
time.
A
A
So
with
those
set
up.
We
now
need
to
edit
our
ci
cd,
so
we're
going
to
go
to
our
ci
yaml
here
and
we
want
to
edit
this
now.
Essentially,
what
we
want
to
do
is
have
the
from
zendesk
job.
The
compare
job
and
the
sync
job
only
run
over
here
on
the
ops
instance,
but
the
from
repo
job
can
run
either
way.
So,
first
we're
gonna
set
up
an
empty
rules
bracket
for
from
repo
because
it
can
just
run
anytime.
A
It's
not
a
big
deal,
but
for
the
from
zendesk
one
we're
going
to
set
up
rules
and
we're
going
to
do
if
run
job.
True
now,
this
will
essentially
say
to
only
run
this
job.
If
that
variable
run,
job
is
true,
which
it
is
not
on
the
com
instance,
but
it
is
on
the
ops
instance.
Now
we're
going
to
go
ahead
and
add
that.
A
Add
that
to
our
compare
and
our
sync
jobs,
there
we
go,
and
that
should
be
all
we
need
there,
but
worst
case
scenario.
We
can
always
like
you
know
edit
this
as
needed,
so
we'll
do
a
commit,
adjusting
ci
rules
or
mirroring
and
we'll
create
a
new
merge
request,
the
benefit
of
doing
it.
This
way
is
we
are
going
to
be
able
to
see
if
it's
working
correctly,
we'll
add
our
labels
automations.
A
A
Now
we
can
see
how
it's
already
said:
it's
detached
pipeline
has
failed.
So
if
we
look,
you
can
tell
me,
okay
must
have
typoed
a
little
bit
on
that
that,
mr,
so
let's
look
at
our
changes.
A
A
A
A
Now,
while
that
does
that,
let's
go
to
our
settings
real,
quick,
there's
some
things
we
want
to
adjust
here
so
request
approvals-
you
want
to
get
rid
of
these,
save
it
like
that,
we're
going
to
add
an
approval
rule
we're
going
to
call
it
support
operations.
A
Now
the
reason
we're
not
writing
the
rest
of
operations
is.
This
is
a
us
federal
one,
so
we
only
want
the
us
federal
ones
who
can
maintain
the
actual
code
doing
it.
So,
with
that
set
up,
we
should
be
in
a
good
place.
We
would
want
to
normally
set
up
like
the
merge
request
settings.
Some
things
we
would
normally
want
to
do
here
is
require
that
pipelines
must
succeed.
A
So
with
that
all
done,
let's
go
ahead
and
check
the
status
of
our
mirror.
A
We
will
go
to
mirroring
says
it
just
push
now
so,
let's
refresh
over
here,
and
we
should
see
that
new
ci
update
and
there
we
go
and
that's
all
there
really
is
to
it
with
that.
It's
set
up
it's
good
to
go,
update
your
documentation
and
you're
ready
to
continue
hope.
You
found
this
educational
look
forward
to
seeing
you
in
the
next
video.