diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 517051d..5de1581 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -60,19 +60,20 @@ jobs: - name: Publish Image files if: github.event_name == 'schedule' || (inputs.branch_name == 'main' && inputs.is_merged == true) run: | - echo "${{secrets.RCLONE_CONFIG}}" > /tmp/rclone.conf + echo "$RCLONE_CONFIG" > /tmp/rclone.conf echo rclone copy ./${{inputs.app_name}}-${{inputs.app_version}}-${{inputs.architecture}}-root.tar.xz cloudflare:lxc-images --config /tmp/rclone.conf rclone copy ./${{inputs.app_name}}-${{inputs.app_version}}-${{inputs.architecture}}-meta.tar.xz cloudflare:lxc-images --config /tmp/rclone.conf echo echo 'LXC Image published successfully !' env: + RCLONE_CONFIG: ${{secrets.RCLONE_CONFIG}} RCLONE_CONFIG_PASS: ${{secrets.RCLONE_CONFIG_PASS}} - name: Publish build info if: github.event_name == 'schedule' || (inputs.branch_name == 'main' && inputs.is_merged == true) run: | - hurl --variable endpoint_url=${{secrets.HOMELAB_LXC_EP}} --variable token=${{secrets.HOMELAB_LXC_TOKEN}} \ + hurl --variable endpoint_url=$HOMELAB_LXC_EP --variable token=$HOMELAB_LXC_TOKEN \ --variable app_name=${{inputs.app_name}} --variable app_version=${{inputs.app_version}} \ --variable arch=${{inputs.architecture}} --variable dist=${{inputs.distribution}} \ --variable dist_release=${{inputs.release}} --variable build_id=${{inputs.app_name}}-${{inputs.app_version}}-${{inputs.architecture}}.tar.xz\ @@ -80,3 +81,6 @@ jobs: .github/publish_build.hurl echo echo 'LXC build details published successfully !' + env: + HOMELAB_LXC_EP: ${{secrets.HOMELAB_LXC_EP}} + HOMELAB_LXC_TOKEN: ${{secrets.HOMELAB_LXC_TOKEN}}