Skip to content

Commit

Permalink
Migration to Travis and Quay.io
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Sep 21, 2019
1 parent dfbc455 commit d5b0a38
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 7 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: python
if: branch = master OR tag IS present
python: 3.6
services:
- docker

before_script:
- echo "$DOCKER_PASSWORD" | sudo docker login -u "$DOCKER_USERNAME" --password-stdin
- echo "$QUAY_PASSWORD" | sudo docker login -u "$QUAY_USERNAME" --password-stdin quay.io

jobs:
include:
- stage: Build recent x86_64 image
script: make build ARCH=x86_64 GIT_TAG=${TRAVIS_TAG} PUSH=true

- stage: Build recent ARM image
script: make build ARCH=arm GIT_TAG=${TRAVIS_TAG} PUSH=true
26 changes: 19 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
SUDO=sudo

all: build build_arm

build:
${SUDO} docker build . -t wolnosciowiec/reverse-networking
.SILENT:
PUSH=true
SUDO=sudo
SHELL=/bin/bash
QUAY_REPO=quay.io/riotkit/reverse-networking

build_arm:
${SUDO} docker build -f ./armhf.Dockerfile . -t wolnosciowiec/reverse-networking:armhf
build: ## Build and push (args: PUSH, ARCH, GIT_TAG)
set -e; DOCKER_TAG="latest-dev-${ARCH}"; \
\
if [[ "${GIT_TAG}" != '' ]]; then \
DOCKER_TAG=${GIT_TAG}-${ARCH}; \
fi; \
\
${SUDO} docker build . -f ./${ARCH}.Dockerfile -t ${QUAY_REPO}:$${DOCKER_TAG}; \
${SUDO} docker tag ${QUAY_REPO}:$${DOCKER_TAG} ${QUAY_REPO}:$${DOCKER_TAG}-$$(date '+%Y-%m-%d'); \
\
if [[ "${PUSH}" == "true" ]]; then \
${SUDO} docker push ${QUAY_REPO}:$${DOCKER_TAG}-$$(date '+%Y-%m-%d'); \
${SUDO} docker push ${QUAY_REPO}:$${DOCKER_TAG}; \
fi
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,16 @@ Examples:
- PN_VALIDATE_COMMAND="/bin/false" # for testing
- PN_VALIDATE_COMMAND="curl http://your-domain.org:8002"
- PN_VALIDATE_COMMAND="wget -O - -T 2 http://172.28.0.6:3307 2>&1|grep mariadb"

Copyleft
--------

Created by **RiotKit Collective**, a libertarian, grassroot, non-profit organization providing technical support for the non-profit Anarchist movement.

Check out those initiatives:
- International Workers Association (https://iwa-ait.org)
- Federacja Anarchistyczna (http://federacja-anarchistyczna.pl)
- Związek Syndykalistów Polski (https://zsp.net.pl) (Polish section of IWA-AIT)
- Komitet Obrony Praw Lokatorów (https://lokatorzy.info.pl)
- Solidarity Federation (https://solfed.org.uk)
- Priama Akcia (https://priamaakcia.sk)
File renamed without changes.
File renamed without changes.

0 comments on commit d5b0a38

Please sign in to comment.