Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
timo.bergen committed Jul 12, 2023
0 parents commit 7ae173c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Build-Dockerfile-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build-and-push

on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'


jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/camao-tec/ansible:latest
platforms: linux/amd64,linux/arm64
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.9-slim-buster

RUN apt-get update && \
apt-get install -y --no-install-recommends \
ssh && \
rm -rf /var/lib/apt/lists/*

RUN pip install ansible

CMD [ "ansible-playbook", "--version" ]

0 comments on commit 7ae173c

Please sign in to comment.