Skip to content

Commit d5b0a38

Browse files
committed
Migration to Travis and Quay.io
1 parent dfbc455 commit d5b0a38

File tree

5 files changed

+49
-7
lines changed

5 files changed

+49
-7
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: python
2+
if: branch = master OR tag IS present
3+
python: 3.6
4+
services:
5+
- docker
6+
7+
before_script:
8+
- echo "$DOCKER_PASSWORD" | sudo docker login -u "$DOCKER_USERNAME" --password-stdin
9+
- echo "$QUAY_PASSWORD" | sudo docker login -u "$QUAY_USERNAME" --password-stdin quay.io
10+
11+
jobs:
12+
include:
13+
- stage: Build recent x86_64 image
14+
script: make build ARCH=x86_64 GIT_TAG=${TRAVIS_TAG} PUSH=true
15+
16+
- stage: Build recent ARM image
17+
script: make build ARCH=arm GIT_TAG=${TRAVIS_TAG} PUSH=true

Makefile

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
SUDO=sudo
2-
3-
all: build build_arm
41

5-
build:
6-
${SUDO} docker build . -t wolnosciowiec/reverse-networking
2+
.SILENT:
3+
PUSH=true
4+
SUDO=sudo
5+
SHELL=/bin/bash
6+
QUAY_REPO=quay.io/riotkit/reverse-networking
77

8-
build_arm:
9-
${SUDO} docker build -f ./armhf.Dockerfile . -t wolnosciowiec/reverse-networking:armhf
8+
build: ## Build and push (args: PUSH, ARCH, GIT_TAG)
9+
set -e; DOCKER_TAG="latest-dev-${ARCH}"; \
10+
\
11+
if [[ "${GIT_TAG}" != '' ]]; then \
12+
DOCKER_TAG=${GIT_TAG}-${ARCH}; \
13+
fi; \
14+
\
15+
${SUDO} docker build . -f ./${ARCH}.Dockerfile -t ${QUAY_REPO}:$${DOCKER_TAG}; \
16+
${SUDO} docker tag ${QUAY_REPO}:$${DOCKER_TAG} ${QUAY_REPO}:$${DOCKER_TAG}-$$(date '+%Y-%m-%d'); \
17+
\
18+
if [[ "${PUSH}" == "true" ]]; then \
19+
${SUDO} docker push ${QUAY_REPO}:$${DOCKER_TAG}-$$(date '+%Y-%m-%d'); \
20+
${SUDO} docker push ${QUAY_REPO}:$${DOCKER_TAG}; \
21+
fi

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,16 @@ Examples:
144144
- PN_VALIDATE_COMMAND="/bin/false" # for testing
145145
- PN_VALIDATE_COMMAND="curl http://your-domain.org:8002"
146146
- PN_VALIDATE_COMMAND="wget -O - -T 2 http://172.28.0.6:3307 2>&1|grep mariadb"
147+
148+
Copyleft
149+
--------
150+
151+
Created by **RiotKit Collective**, a libertarian, grassroot, non-profit organization providing technical support for the non-profit Anarchist movement.
152+
153+
Check out those initiatives:
154+
- International Workers Association (https://iwa-ait.org)
155+
- Federacja Anarchistyczna (http://federacja-anarchistyczna.pl)
156+
- Związek Syndykalistów Polski (https://zsp.net.pl) (Polish section of IWA-AIT)
157+
- Komitet Obrony Praw Lokatorów (https://lokatorzy.info.pl)
158+
- Solidarity Federation (https://solfed.org.uk)
159+
- Priama Akcia (https://priamaakcia.sk)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)