Skip to content

Commit 426dc30

Browse files
committed
build: tag image for ghcr
1 parent ff61f01 commit 426dc30

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
with:
3232
context: .
3333
push: true
34-
tags: ansible-runner:latest
34+
tags: ghcr.io/gamersoutreach/ansible-runner:latest

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ WORKDIR /app
3131
RUN useradd -m ansible
3232
RUN mkdir -p /home/ansible/.ssh
3333
RUN chown -R ansible:ansible /home/ansible/.ssh
34+
USER ansible

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
# Ansible Runner Docker Image
22

33
This project builds a docker image with all of the dependencies required to run `ansible-playbook` and `ansible-lint`.
4+
5+
## Image Details
6+
7+
### Users
8+
9+
- `ansible` - This image contains a user for use by ansible. This user enables SSH from inside of the container.
10+
11+
### Mounts
12+
13+
- `/app` - The expected mount location for an ansible project
14+
- `/home/ansible/.ssh` - The ansible user's SSH Directory. Private keys can be mounted inside of this directory for use by ansible-playbook during runs.

0 commit comments

Comments
 (0)