Skip to content

Release

Release #9

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- v*
- debian*
permissions:
contents: write
env:
DEBIAN_VERSION: 12
DEBIAN_VERNAME: bookworm
DEBIAN_RELEASE: 20240201-1644
GCLOUD_IMAGE_NAME: debian-${{ env.DEBIAN_VERSION }}-genericcloud-amd64-${{ env.DEBIAN_RELEASE }}.qcow2

Check failure on line 18 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 18, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DEBIAN_VERSION .github/workflows/release.yml (Line: 19, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DEBIAN_VERSION
GAGENT_IMAGE_NAME: debian-${{ env.DEBIAN_VERSION }}-grafanaagent-amd64-${{ env.DEBIAN_RELEASE }}.qcow2
DOCKER_IMAGE_NAME: debian-${{ env.DEBIAN_VERSION }}-docker-amd64-${{ env.DEBIAN_RELEASE }}.qcow2
GCLOUD_IMAGE_URL: "https://cloud.debian.org/images/cloud/bookworm/20240201-1644/debian-12-genericcloud-amd64-20240201-1644.qcow2"
jobs:
# create-release:
# runs-on: ubuntu-latest
# steps:
# - name: Create release draft
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# gh release create "${GITHUB_REF_NAME}" \
# --repo="${GITHUB_REPOSITORY}" \
# --title="${GITHUB_REF_NAME}" \
# --generate-notes \
# --latest \
# --draft
download-base-image:
runs-on: ubuntu-latest
steps:
- name: Cache image
uses: actions/cache@v4
id: cache
with:
path: ${{ env.GCLOUD_IMAGE_NAME }}
key: ${{ env.GCLOUD_IMAGE_NAME }}
- name: Download image
if: steps.cache.outputs.cache-hit != 'true'
run: wget -O "${GCLOUD_IMAGE_NAME}" "${GCLOUD_IMAGE_URL}"
# - name: Download image
# if: steps.cache.outputs.cache-hit != 'true'
# run: wget -O "$IMAGE_FILE" "$IMAGE_PATH"
# build-cloudimage:
# runs-on: ubuntu-latest
# needs: release
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Install libguestfs
# run: |
# sudo apt-get update -y
# sudo apt-get install -y libguestfs-tools
# - name: Download image
# run: |
# source settings.sh
# wget -O "$IMAGE_FILE" "$IMAGE_PATH"
# - name: Build image
# run: |
# echo "cloudimage" > build.log
# cat README.md
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: debian-cloudimage
# path: build.log
# retention-days: 1
# publish-cloudimage:
# runs-on: ubuntu-latest
# needs: build-cloudimage
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: debian-cloudimage
# - name: Publish image
# run: |
# cat build.log
# cat README.md