name: Generate Images on: workflow_dispatch: push: paths: - 'tools/**' jobs: debian-images: name: Debian Images runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: debootstrap run: | cd ./tools/qemu-debian-img/ ./generate-images.sh - name: Upload Debian 7 image uses: BetaHuhn/do-spaces-action@v2 with: access_key: ${{ secrets.ACCESS_KEY }} secret_key: ${{ secrets.SECRET_KEY }} space_name: ${{ secrets.SPACE_NAME }} space_region: ${{ secrets.SPACE_REGION }} source: tools/qemu-debian-img/out_of_tree_debian_7.img out_dir: 1.0.0 - name: Upload Debian 8 image uses: BetaHuhn/do-spaces-action@v2 with: access_key: ${{ secrets.ACCESS_KEY }} secret_key: ${{ secrets.SECRET_KEY }} space_name: ${{ secrets.SPACE_NAME }} space_region: ${{ secrets.SPACE_REGION }} source: tools/qemu-debian-img/out_of_tree_debian_7.img out_dir: 1.0.0 - name: Upload Debian 9 image uses: BetaHuhn/do-spaces-action@v2 with: access_key: ${{ secrets.ACCESS_KEY }} secret_key: ${{ secrets.SECRET_KEY }} space_name: ${{ secrets.SPACE_NAME }} space_region: ${{ secrets.SPACE_REGION }} source: tools/qemu-debian-img/out_of_tree_debian_7.img out_dir: 1.0.0 - name: Upload Debian 10 image uses: BetaHuhn/do-spaces-action@v2 with: access_key: ${{ secrets.ACCESS_KEY }} secret_key: ${{ secrets.SECRET_KEY }} space_name: ${{ secrets.SPACE_NAME }} space_region: ${{ secrets.SPACE_REGION }} source: tools/qemu-debian-img/out_of_tree_debian_7.img out_dir: 1.0.0 - name: Upload Debian 11 image uses: BetaHuhn/do-spaces-action@v2 with: access_key: ${{ secrets.ACCESS_KEY }} secret_key: ${{ secrets.SECRET_KEY }} space_name: ${{ secrets.SPACE_NAME }} space_region: ${{ secrets.SPACE_REGION }} source: tools/qemu-debian-img/out_of_tree_debian_7.img out_dir: 1.0.0