Skip to content

Commit

Permalink
Try fix on secret usage in a file
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Mar 9, 2024
1 parent 63d31ac commit 0424235
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,27 @@ 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\
--variable size=$ARTIFACT_SIZE --variable source=${{inputs.project_source}}\
.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}}

0 comments on commit 0424235

Please sign in to comment.