Skip to content

docker-ansible-master-build #1374

docker-ansible-master-build

docker-ansible-master-build #1374

Workflow file for this run

name: docker-ansible-master-build
on:
push:
branches:
- master
schedule:
- cron: '0 8 * * *'
jobs:
build:
runs-on: ubuntu-22.04
strategy:
max-parallel: 10
matrix:
TAG_NAME: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster]
steps:
- uses: actions/checkout@v4
# - name: Install Grype for Vulnerability Scanning of Docker images.
# run: |
# curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b /usr/local/bin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: DockerHub auth
uses: docker/login-action@v3
with:
username: ${{ secrets.USER }}
password: ${{ secrets.PASS }}
- name: Build docker image tag ${{ matrix.TAG_NAME }} & push to dockerhub
uses: docker/build-push-action@v5
with:
file: ${{matrix.TAG_NAME}}/Dockerfile
pull: true
push: true
tags: darkwizard242/ansible:${{ matrix.TAG_NAME }}
# - name: Run Grype for Vulnerability Scanning of image
# run: |
# grype darkwizard242/ansible:${{ matrix.TAG_NAME }}
- name: Archive and upload Dockerfile
uses: actions/upload-artifact@master
with:
name: ${{ matrix.TAG_NAME }}_image_artifacts
path: ${{ matrix.TAG_NAME }}/