Commit 416e60ec authored by Erick Hitter's avatar Erick Hitter
parents
Pipeline #859 passed with stages
in 1 minute and 23 seconds
.idea
*.iml
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
#
# TESTS
#
lint-dockerfile:
stage: test
image: hadolint/hadolint:latest-debian
before_script:
- mkdir ~/.config
- cp ./.hadolint.yaml ~/.config/hadolint.yaml
script:
- find . -name "Dockerfile" -execdir hadolint {} \;
lint-shell-script:
stage: test
image: koalaman/shellcheck-alpine:latest
before_script:
- shellcheck -V
script:
- find . -name "*.sh" -exec shellcheck {} \;
#
# IMAGE BUILDS/PUSHES
#
build-master:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/wp-org-plugin-deploy:latest" ./Dockerfile
- docker push "$CI_REGISTRY_IMAGE/wp-org-plugin-deploy:latest"
only:
- master
when: manual
build-dev:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/wp-org-plugin-deploy:dev" ./Dockerfile
- docker push "$CI_REGISTRY_IMAGE/wp-org-plugin-deploy:dev"
except:
- master
ignored:
- DL3007
- DL3008
FROM debian:stretch-slim
LABEL maintainer="ethitter"
LABEL version="1.0"
RUN echo "deb http://security.debian.org/ stretch/updates main" >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
ca-certificates \
curl \
git \
rsync \
subversion \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
MIT License
Copyright (c) 2018 Erick Hitter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# WP.org Plugin Deploy Image [![pipeline status](https://git.ethitter.com/docker/wp-org-plugin-deploy/badges/master/pipeline.svg)](https://git.ethitter.com/docker/wp-org-plugin-depoy/commits/master)
A simple image image used with the [WP.org Plugin Deploy](https://git.ethitter.com/open-source/wp-org-plugin-deploy) CI job. ♾
## Use
See this project's container registry for available images.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment