Move alpine dockerfile to root and update viserion configuration.

viserion
Icedream 2017-08-31 10:06:56 +02:00
parent 5775e07235
commit 91e70859a0
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
3 changed files with 2 additions and 32 deletions

View File

@ -19,7 +19,8 @@ builds:
source: /v(.+)/
target: docker.dreamnetwork.oss:5000/icedream/test-repo:$1
- context: alpine
- context: .
dockerfile: Dockerfile.alpine
tags:
# Git branch "master" -> Docker tag "latest"
- from: branch

View File

@ -1,31 +0,0 @@
#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;
}