Skip to content

Commit

Permalink
Test new CI
Browse files Browse the repository at this point in the history
  • Loading branch information
exitfound committed Mar 29, 2024
1 parent 42cfc1b commit ee15474
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/molecule-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,23 @@ jobs:
ignore: "DL3013,DL3037"

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

build-suse-image-matrix:
needs: build-suse-image
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
OS_VERSION: [opensuse15.3, opensuse15.4, opensuse15.5]
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -48,10 +63,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

0 comments on commit ee15474

Please sign in to comment.