Skip to content

Commit

Permalink
inputs instead of matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Morales <[email protected]>
  • Loading branch information
mauromorales committed Jul 17, 2023
1 parent 09d479b commit 2db9e63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/reusable-build-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ jobs:
packages: utils/earthly
- name: Build PR 🔧
env:
FLAVOR: ${{ matrix.flavor }}
IMAGE: ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}-provider:24h
FLAVOR: ${{ inputs.flavor }}
IMAGE: ttl.sh/kairos-${{ inputs.flavor }}-${{ github.sha }}-provider:24h
run: |
earthly +ci --SECURITY_SCANS=false --IMAGE=$IMAGE --FLAVOR=$FLAVOR --PROVIDER_KAIROS=true
sudo mv build/* .
sudo rm -rf build
- uses: actions/upload-artifact@v3
with:
name: kairos-${{ matrix.flavor }}-provider.iso.zip
name: kairos-${{ inputs.flavor }}-provider.iso.zip
path: |
*.iso
*.sha256
if-no-files-found: error
- name: Push to testing
run: |
docker push ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}-provider:24h
docker push ttl.sh/kairos-${{ inputs.flavor }}-${{ github.sha }}-provider:24h
6 changes: 3 additions & 3 deletions .github/workflows/reusable-provider-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: kairos-${{ matrix.flavor }}-provider.iso.zip
name: kairos-${{ inputs.flavor }}-provider.iso.zip
- name: Run tests
env:
USE_QEMU: true
KVM: true
MEMORY: 4000
CPUS: 2
DRIVE_SIZE: 30000
CONTAINER_IMAGE: ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}-provider:24h
CONTAINER_IMAGE: ttl.sh/kairos-${{ inputs.flavor }}-${{ github.sha }}-provider:24h
run: |
export ISO=$PWD/$(ls *.iso)
cp tests/go.* .
go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "${{ matrix.label }}" --fail-fast -r ./tests/
go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "${{ inputs.label }}" --fail-fast -r ./tests/
provider-tests-upgrade-latest:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: self-hosted
Expand Down

0 comments on commit 2db9e63

Please sign in to comment.