Remove scheduled CI jobs

This commit is contained in:
flow.gunso
2020-01-08 11:46:46 +01:00
parent c63fa89e23
commit 3455c65959
7 changed files with 4 additions and 103 deletions

View File

@@ -14,22 +14,13 @@ before_script:
build.tags: build.tags:
stage: build stage: build
script: /bin/bash -e .utilities/build.tags.sh script: /bin/bash -e .utilities/build.sh
only: only:
- tags - tags
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_NAME.tar - $CI_PROJECT_NAME.tar
build.schedules:
stage: build
script: /bin/bash -e .utilities/build.schedules.sh
only:
- schedules
artifacts:
paths:
- $CI_PROJECT_NAME.tar
test: test:
stage: test stage: test
script: /bin/bash -e .utilities/test.sh script: /bin/bash -e .utilities/test.sh
@@ -42,22 +33,13 @@ test:
publish.tags: publish.tags:
stage: publish stage: publish
script: /bin/bash -e .utilities/publish.tags.sh script: /bin/bash -e .utilities/publish.sh
only: only:
- tags - tags
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_NAME.tar - $CI_PROJECT_NAME.tar
publish.schedules:
stage: publish
script: /bin/bash -e .utilities/publish.schedules.sh
only:
- schedules
artifacts:
paths:
- $CI_PROJECT_NAME.tar
#update_docker_hub_full_description: #update_docker_hub_full_description:
# stage: publish # stage: publish
# script: /bin/bash -e .utilities/update-docker-hub-full-description.sh # script: /bin/bash -e .utilities/update-docker-hub-full-description.sh

View File

@@ -1,32 +0,0 @@
#!/bin/bash
# Docker Seafile client, help you mount a Seafile library as a volume.
# Copyright (C) 2019-2020, flow.gunso@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Hard reset to the latest tag.
latest_version=$(git describe --abbrev=0)
git reset --hard $latest_version
cp -R tests seafile-client/
cd seafile-client/
docker build \
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--build-arg VCS_REF=$(git rev-parse --short HEAD) \
--build-arg VERSION=$latest_version \
--tag $CI_PROJECT_NAME:build .
docker save --output ../$CI_PROJECT_NAME.tar $CI_PROJECT_NAME:build

View File

@@ -17,24 +17,11 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# Check the CI pipeline sources. # Check the CI pipeline sources.
if ! [[ "$CI_PIPELINE_SOURCE" == "push" || "$CI_PIPELINE_SOURCE" == "schedule" ]]; then if ! [[ "$CI_PIPELINE_SOURCE" == "push" ]]; then
echo "CI pipelines are only allowed from the push and schedule sources" echo "CI pipelines are only allowed from push."
exit 1 exit 1
fi fi
# Check the schedule target for the scheduled CI pipelines.
if [[ "$CI_PIPELINE_SOURCE" == "schedule" ]]; then
if [[ -z "$SCHEDULE_TARGET" ]]; then
echo "\$SCHELUDE_TARGET was not provided."
exit 1
fi
if ! [[ "$SCHEDULE_TARGET" == "weekly" ]]; then
echo "\$SCHEDULE_TARGET $SCHEDULE_TARGET is not known."
exit 1
fi
fi
# Check the tag is properly defined on job other than update_docker_hub_full_description job, # Check the tag is properly defined on job other than update_docker_hub_full_description job,
# on pushed CI pipelines. # on pushed CI pipelines.
if [[ "$CI_PIPELINE_SOURCE" == "push" ]]; then if [[ "$CI_PIPELINE_SOURCE" == "push" ]]; then

View File

@@ -1,34 +0,0 @@
# !/bin/bash
# Docker Seafile client, help you mount a Seafile library as a volume.
# Copyright (C) 2019-2020, flow.gunso@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
SCRIPT_DIRECTORY=$(dirname ${BASH_SOURCE[0]})
source $SCRIPT_DIRECTORY/utilities.sh
load_images_artifacts
tags=("latest")
for version_component in "$(git describe --abbrev=0 | tr '.' '\n')"; do
tag+="$version_component"
tags+=("$tag")
tag+="."
done
echo $CI_REGISTRY_BOT_PASSWORD | docker login --password-stdin --username $CI_REGISTRY_BOT_USERNAME
for tag in "${tags[@]}"; do
docker tag $CI_PROJECT_NAME:build $CI_REGISTRY_IMAGE:$tag
docker push $CI_REGISTRY_IMAGE:$tag
done

View File

@@ -15,8 +15,6 @@
* Upload and download speeds are configurable. * Upload and download speeds are configurable.
* SSL certificates are skippable. * SSL certificates are skippable.
<!-- --> <!-- -->
* Supported tags are rebuilt weekly.
<!-- -->
* Ask questions on [Seafile forum](https://forum.seafile.com/t/docker-client-to-sync-files-with-containers/8573). * Ask questions on [Seafile forum](https://forum.seafile.com/t/docker-client-to-sync-files-with-containers/8573).
* Contribute and report issues on [Gitlab](https://gitlab.com/flwgns-docker/seafile-client/). * Contribute and report issues on [Gitlab](https://gitlab.com/flwgns-docker/seafile-client/).