diff --git a/.github/workflows/molecule-images.yaml b/.github/workflows/molecule-images.yaml index 7ddab93..e42b9b6 100644 --- a/.github/workflows/molecule-images.yaml +++ b/.github/workflows/molecule-images.yaml @@ -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 @@ -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