Compare commits

..

No commits in common. "viserion" and "master" have entirely different histories.

3 changed files with 31 additions and 54 deletions

View File

@ -1,54 +0,0 @@
linked-repositories:
- alpine
- debian
builds:
- tags:
# Git branch "master" -> Docker tag "latest"
- from: branch
source: master
target: docker.dreamnetwork.oss:5000/icedream/test-repo
# Git branches "develop", "viserion" -> Docker tag = branch name
- from: branch
source: /^(develop|viserion)$/
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1
# Git tag "v0.1.2" -> Docker tag "0.1.2"
- from: tag
source: /^v(.+)$/
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1
# Git commit hash -> Docker tag hash
- from: hash
source: /^(.+)$/
branches:
- develop
- viserion
target: $1-alpine
- context: .
dockerfile: Dockerfile.alpine
tags:
# Git branch "master" -> Docker tag "latest"
- from: branch
source: master
target: docker.dreamnetwork.oss:5000/icedream/test-repo:alpine
# Git branches "develop", "viserion" -> Docker tag = branch name
- from: branch
source: /^(develop|viserion)$/
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1-alpine
# Git tag "v0.1.2" -> Docker tag "0.1.2"
- from: tag
source: /^v(.+)$/
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1-alpine
# Git commit hash -> Docker tag hash
- from: hash
source: /^(.+)$/
branches:
- develop
- viserion
target: $1-alpine

31
alpine/hello.c Normal file
View File

@ -0,0 +1,31 @@
#define _GNU_SOURCE
#include <stdlib.h>
#include <unistd.h>
#include <pwd.h>
#include <stdio.h>
#include <errno.h>
extern char *program_invocation_name;
extern char *program_invocation_short_name;
int main() {
register struct passwd *pw;
register uid_t uid;
printf("This is %s speaking.\n", program_invocation_name);
uid = geteuid();
pw = getpwuid(uid);
if (pw)
{
printf("Hello, %s!\n", pw->pw_name);
}
else
{
printf("I don't know your name but your ID is %d!\n", (unsigned) uid);
}
return 0;
}