summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-docker.sh
blob: 4e8e0e11ed55156059c1e989bcfc9ca6c9fe434b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

TAG="registry.gitlab.gnome.org/gnome/gvfs/master:v4"

if [[ "$1" == "--no-cache" ]]; then
  NOCACHE="--no-cache"
fi

docker build $NOCACHE -t $TAG .

if [[ "$1" == "--push" ]]; then
  docker login registry.gitlab.gnome.org
  docker push $TAG
fi