Skip to content

Commit

Permalink
Update new CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
exitfound committed Mar 30, 2024
1 parent 70512de commit 721d8df
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/molecule-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
recursive: true
dockerfile: ./dockerfiles/${{env.DOCKERFILE_PROFILE}}.dockerfile
ignore: "DL3013,DL3033,DL3037,DL3041"
ignore: "DL3008,DL3013,DL3033,DL3037,DL3041"

build-suse-image:
needs: hadolint
Expand Down Expand Up @@ -116,3 +116,47 @@ jobs:
context: ./dockerfiles/
tags: mdd13/ansible-docker-redhat:${{env.OS_VERSION}}
file: ./dockerfiles/${{env.OS_VERSION}}.dockerfile

build-debian-image:
needs: hadolint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

build-debian-image-matrix:
needs: build-debian-image
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
OS_VERSION: [debian10, debian11, debian12]
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker Image
uses: docker/build-push-action@v5
env:
OS_VERSION: ${{ matrix.OS_VERSION }}
with:
push: true
context: ./dockerfiles/
tags: mdd13/ansible-docker-debian:${{ env.OS_VERSION }}
file: ./dockerfiles/${{ env.OS_VERSION }}.dockerfile

0 comments on commit 721d8df

Please sign in to comment.