diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..05c4055 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM Dockerfile +RUN apt-get update && apt-get -y install build-essential && mkdir -p /app +COPY . /app/ +WORKDIR /app/ +CMD make diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..634cc9e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,20 @@ +node { + def app + stage('Clone repository') { + git 'https://github.com/yangsubinn/Test-iOS.git' + } + stage('Build Image') { + app = docker.build("yangsubinn/test-jenkins") + } + stage('Test Image') { + app.inside { + sh 'make test' + } + } + stage('Push image') { + docker.withRegistry('https://registry.hub.docker.com', '231ac0f4-40ba-49f6-b419-34e2cdac6b42') { + app.push("${env.BUILD_NUMBER}") + app.push("latest") + } + } +} diff --git a/README.md b/README.md index c53dc55..515a305 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@
+ + | 👻 | ❓ | ✔️ | 👾 | |:----------:|:-------------|:------:|:------:| | 1 | Haptic Vibration | ✔️ | [📂](https://github.com/yangsubinn/Test-iOS/blob/master/Test/Test/Source/ViewControllers/HapticVC.swift) |