Skip to content
Snippets Groups Projects
Commit e1358472 authored by Felix Delattre's avatar Felix Delattre
Browse files

relicensed, updated, and cleaned

parent cef4285d
No related branches found
No related tags found
No related merge requests found
name: Build Docker Image
on:
push:
branches:
- "master"
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
env:
IMAGE_VERSION: 'latest'
NAMESPACE: 'oneofftech/ansible-keepass'
CI_COMMIT_SHORT_SHA: ${{github.sha}}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Build the Docker image
run: |
docker pull $NAMESPACE:$IMAGE_VERSION || true
docker build --pull --compress --cache-from $NAMESPACE:$IMAGE_VERSION --build-arg VCS_REF=$CI_COMMIT_SHORT_SHA --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -t $NAMESPACE:$IMAGE_VERSION .
- name: Test using Goss
run: |
curl -sL https://github.com/aelsabbahy/goss/releases/download/v0.3.10/goss-linux-amd64 -o ./goss
chmod +rx ./goss
docker run --rm $NAMESPACE:$IMAGE_VERSION > ./docker_output.log || true
./goss -g ./tests/goss.yml v
- name: Prepare push
uses: azure/docker-login@v1
if: github.event_name == 'push'
with:
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_PASSWORD }}
- name: Push the Docker image
if: github.event_name == 'push'
run: |
docker push $NAMESPACE:$IMAGE_VERSION
\ No newline at end of file
name: Dockerfile lint
on:
push:
branches:
- "master"
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Lint the Dockerfile
run: npx dockerfilelint ./Dockerfile
- name: Lint the Shell scripts
run: shellcheck ./files/ansible-playbook-wrapper
\ No newline at end of file
......@@ -3,11 +3,11 @@ FROM gliderlabs/alpine:3.9
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="OneOffTech <info@oneofftech.xyz>" \
org.label-schema.name="oneofftech/ansible-keepass" \
LABEL maintainer="Felix Delattre <fd@gfz-potsdam.de>" \
org.label-schema.name="dynamicexposure/ansible-keepass" \
org.label-schema.description="Opinionated Ansible Docker image with Keepass to manage provision and deployments" \
org.label-schema.schema-version="1.0" \
org.label-schema.vcs-url="https://github.com/OneOffTech/docker-ansible-keepass"
org.label-schema.vcs-url="https://gitext.gfz-potsdam.de/dynamicexposure/server-components/docker-ansible-keepass"
RUN apk-install --no-cache \
bash \
......
LICENSE 0 → 100644
This diff is collapsed.
The MIT License (MIT)
Copyright (c) 2018 Felix Delattre
Copyright (c) 2018 Paul Scheunemann
Copyright (c) 2018-present OneOff-Tech UG, Berlin, Germany
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.
......@@ -2,7 +2,7 @@ version: '2'
services:
ansible_commander:
image: "oneofftech/ansible-keepass"
build: https://gitext.gfz-potsdam.de/dynamicexposure/server-components/docker-ansible-keepass.git
container_name: ansible_commander
volumes:
- ./data/playbooks/:/ansible/playbooks/playbooks:ro
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment