-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I07a71897a30d76ad6d62413679f634cfe28fc698
- Loading branch information
1 parent
f4d7a80
commit 4a0acd7
Showing
4 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Build kubez-ansible image | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Login in dockerhub | ||
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c | ||
with: | ||
username: jacky06 | ||
password: jacky06jacky06 | ||
|
||
- name: Build and push kubez-ansible image | ||
run: make push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ubuntu:20.04 | ||
|
||
WORKDIR /kubez-ansible | ||
COPY . . | ||
|
||
RUN apt-get update | ||
RUN apt install -y git python3-pip ansible && \ | ||
pip3 install /kubez-ansible && \ | ||
apt remove -y git python3-pip && \ | ||
apt-get clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.PHONY: run build image push clean | ||
|
||
tag = v3.0.0 | ||
releaseName = kubez-ansible | ||
dockerhubUser = jacky06 | ||
|
||
ALL: run | ||
|
||
image: | ||
docker build -t $(dockerhubUser)/$(releaseName):$(tag) . | ||
|
||
push: image | ||
docker push $(dockerhubUser)/$(releaseName):$(tag) |
This file was deleted.
Oops, something went wrong.