Skip to content

chore(deps): update dependency ansible to v8.6.1 (#463) #420

chore(deps): update dependency ansible to v8.6.1 (#463)

chore(deps): update dependency ansible to v8.6.1 (#463) #420

name: Build and Ship
on:
push:
branches:
- main
paths:
- .github/workflows/build_and_ship.yaml
- containers/**
jobs:
set-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: |
matrix=$(jq -ncR '[inputs]' <<< $(ls containers))
echo "matrix=$matrix" >> $GITHUB_OUTPUT
build_and_ship:
runs-on: ubuntu-latest
needs: set-matrix
strategy:
matrix:
container: ${{ fromJson(needs.set-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: "containers/${{ matrix.container }}"
push: true
tags: |-
ghcr.io/corrupt952/home/${{ matrix.container }}:${{ github.sha }},
ghcr.io/corrupt952/home/${{ matrix.container }}:latest