You've already forked ansible-docker
Compare commits
2 Commits
0b1e2213ca
...
0.1.0
Author | SHA1 | Date | |
---|---|---|---|
395be4db9e
|
|||
8044e5941e
|
45
.gitea/workflows/build.yaml
Normal file
45
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,45 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- "opened"
|
||||
- "reopened"
|
||||
- "synchronize"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build-arch-linux:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.10.0
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--file Dockerfile.archlinux \
|
||||
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \
|
||||
.
|
||||
|
||||
build-rocky-linux-8:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.10.0
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--file Dockerfile.rockylinux8 \
|
||||
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
|
||||
.
|
76
.gitea/workflows/release.yaml
Normal file
76
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,76 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
push-arch-linux:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.10.0
|
||||
|
||||
- uses: docker/login-action@v3.4.0
|
||||
with:
|
||||
registry: git.cryptic.systems
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--file Dockerfile.archlinux \
|
||||
--push \
|
||||
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \
|
||||
.
|
||||
|
||||
push-rocky-linux-8:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.10.0
|
||||
|
||||
- uses: docker/login-action@v3.4.0
|
||||
with:
|
||||
registry: git.cryptic.systems
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--file Dockerfile \
|
||||
--push \
|
||||
--tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \
|
||||
.
|
||||
|
||||
sync-to-hub-docker-io:
|
||||
needs:
|
||||
- push-manifest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Copy images to docker.io
|
||||
run: |
|
||||
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||
|
||||
apt-get update --yes
|
||||
apt-get install --yes skopeo
|
||||
|
||||
for suffix in archlinux rockylinux-8; do
|
||||
skopeo copy \
|
||||
--all \
|
||||
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
|
||||
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
|
||||
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
|
||||
--src-username volker.raschek \
|
||||
docker://git.cryptic.systems/volker.raschek/ansible:${TAG}-${suffix} \
|
||||
docker://docker.io/volkerraschek/ansible:${TAG}-${suffix}
|
||||
done
|
21
.gitea/workflows/update-docker-hub-description.yaml
Normal file
21
.gitea/workflows/update-docker-hub-description.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
name: Update Docker Hub Description
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- README.md
|
||||
|
||||
jobs:
|
||||
update-description-on-hub-docker-io:
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: peter-evans/dockerhub-description@v4.0.2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_IO_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_IO_PASSWORD }}
|
||||
repository: volkerraschek/ansible
|
||||
readme-filepath: README.md
|
@ -1,4 +1,4 @@
|
||||
FROM docker.io/library/rockylinux:9
|
||||
FROM docker.io/library/rockylinux:8
|
||||
|
||||
RUN dnf update --assumeyes && \
|
||||
dnf install --assumeyes bash-completion sudo && \
|
||||
@ -10,6 +10,14 @@ RUN dnf update --assumeyes && \
|
||||
dnf install --assumeyes python3-boto3 python3-botocore && \
|
||||
dnf clean all
|
||||
|
||||
# We must change python to 3.12 (default 3.6), to be compliant with ansible-core. Furthermore, we must upgrade pip to
|
||||
# latest version. Otherwise is still used pip for python 3.6. At least, we install boto3, which is required for the aws
|
||||
# dynamic inventory manually, because the official python-boto3 package is for python 3.6.
|
||||
RUN alternatives --set python3 /usr/bin/python3.12 && \
|
||||
curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
|
||||
python3 get-pip.py && \
|
||||
pip install boto3
|
||||
|
||||
# Create default ansible inventory file
|
||||
RUN mkdir --parents /etc/ansible
|
||||
RUN echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
|
||||
|
@ -1,4 +1,3 @@
|
||||
# ansible-archlinux-docker
|
||||
# ansible
|
||||
|
||||
[](https://drone.cryptic.systems/volker.raschek/ansible-archlinux-docker)
|
||||
[](https://hub.docker.com/r/volkerraschek/ansible-archlinux)
|
||||
|
Reference in New Issue
Block a user