ansible docker and continous integration to git.limbosolution.com/kb packages
All checks were successful
/ build-docker-image (push) Successful in 18s
All checks were successful
/ build-docker-image (push) Successful in 18s
This commit is contained in:
26
.gitea/workflows/docker-image.deploy.yml
Normal file
26
.gitea/workflows/docker-image.deploy.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
on:
|
||||||
|
push
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build-docker-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to git.limbosolutions.com docker registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.limbosolutions.com
|
||||||
|
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
id: push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: ${{gitea.workspace}}/docker
|
||||||
|
push: true
|
||||||
|
tags: git.limbosolutions.com/kb/ansible:latest
|
||||||
@@ -1,2 +1,9 @@
|
|||||||
# ansible
|
<!-- omit in toc -->
|
||||||
|
# Ansible
|
||||||
|
|
||||||
|
Welcome to ansible kb git repo.
|
||||||
|
|
||||||
|
|
||||||
|
<!-- omit in toc -->
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
|||||||
7
docker/Dockerfile
Normal file
7
docker/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get install -y gcc python3-dev
|
||||||
|
RUN apt-get install python3-pip -y
|
||||||
|
RUN apt-get install python3-virtualenv -y
|
||||||
|
RUN pip3 install ansible --break-system-packages
|
||||||
Reference in New Issue
Block a user