Skip to content

test: multi-line var #7

test: multi-line var

test: multi-line var #7

name: get Bo, Hamm, Slink & Potato rootfs
env:
DEBIAN_FRONTEND: noninteractive
GET_BASE_DISK_LOG: debug
on:
push:
# branches:
# - master
paths:
- ".github/workflows/old-old-debian.yml"
jobs:
build:
strategy:
fail-fast: true
matrix:
include:
- ver: 1.3
release_tag: 1.3
# sleep: 0
ron: digests.ron
yaml: digests.yml
# - ver: 2.0
# sleep: 20
# ron: digests.ron
# yaml: digests.yml
# - ver: 2.1
# sleep: 40
# ron: digests.ron
# yaml: digests.yml
# - ver: 2.2
# tag: base
# sleep: 50
# ron: digests.base.ron
# yaml: digests.base.yml
runs-on: ubuntu-latest
# defaults:
# run:
# shell: zsh -f -e {0}
steps:
# - name: get-base-disk.bin
# run: docker run -i --rm -v /usr/local/bin:/host reg.tmoe.me:2096/rs/get-base-disk:x64 cp get-base-disk /host
# - name: download rootfs
# run: |
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --obtain --repack --zstd-level 6
# - name: Login to GHCR
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Login to REG
# uses: docker/login-action@v3
# with:
# registry: reg.tmoe.me:2096
# username: "robot$debian+bot_actions_2024"
# password: ${{ secrets.REG_TOKEN }}
# - name: build & push docker
# run: |
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --build --push --create-manifest --update-repo-digest
# - name: generate digests
# run: |
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --digest ${{matrix.yaml}}
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --digest ${{matrix.ron}}
- name: create files.json
run: |
mkdir -p tmp/zstd
touch tmp/zstd/{a,b}.zst
echo 'test: true' > tmp/digests.yml
files=""
for i in tmp/zstd/*zst; do
files+=$i$'\n'
done
for i in tmp/digests.*; do
files+=$i$'\n'
done
printf "%s\n" RELEASE=$files >>"$GITHUB_ENV"
echo '```yaml' > digests.md
# cat tmp/${{matrix.yaml}} >> digests.md
echo '```' >> digests.md
- name: release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{matrix.release_tag}}
files: ${{ env.RELEASE }}
body_path: digests.md