Skip to content

Commit

Permalink
Merge pull request #5 from phyzical/feature/fix-permissions-in-archive
Browse files Browse the repository at this point in the history
Feature/fix permissions in archive
  • Loading branch information
phyzical authored Oct 2, 2024
2 parents 5b4a108 + 583414f commit 1e726bd
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish
on:
push:
branches:
- main
# TODO: lock down main pushes
jobs:
publish:
concurrency:
group: publish
cancel-in-progress: false
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run pkg_build.sh
run: ./pkg_build.sh
- name: Commit changes
run: |
git add archive/* *.plg
git commit -m "Publish plg changes"
git push
Binary file modified archive/docker.labelInjector-2024.07.29.txz
Binary file not shown.
Binary file modified archive/docker.labelInjector-2024.07.31.txz
Binary file not shown.
Binary file modified archive/docker.labelInjector-2024.08.26.txz
Binary file not shown.
Binary file modified archive/docker.labelInjector-2024.08.28.txz
Binary file not shown.
Binary file modified archive/docker.labelInjector-2024.09.02.txz
Binary file not shown.
Binary file modified archive/docker.labelInjector-2024.09.30.txz
Binary file not shown.
Binary file modified archive/docker.labelInjector-2024.10.02.txz
Binary file not shown.
3 changes: 2 additions & 1 deletion docker.labelInjector.plg
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/main/&name;.plg">
<!ENTITY version "2024.10.02">
<!ENTITY md5 "eca43bd56f7129e79ddc705381168f62">
<!ENTITY md5 "7c84e12f51641ac0944930edae7ece74">
]>

<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.12.3">
<CHANGES>
###2024.10.02
- Hard code options to be black text to avoid fighting dark mode
- Fix permissions in archive being set to my user instead of none

###2024.09.30
- Fix changlog
Expand Down
4 changes: 3 additions & 1 deletion pkg_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rsync -av --progress src/docker.labelInjector/ "$tmpdir" --exclude .git --exclud

cd "$tmpdir" || exit

tar -cJf "$filename" .
gtar --owner=0 --group=0 -cJf "$filename" .

cd - || exit

Expand All @@ -28,3 +28,5 @@ sed -i '' 's/<!ENTITY md5 ".*">/<!ENTITY md5 "'"$md5hash"'">/' docker.labelInjec

echo "MD5: $(md5sum "$filename")"
echo "once pushed install via https://raw.githubusercontent.com/phyzical/docker.labelInjector/main/docker.labelInjector.plg"

gtar -tvf "$filename"

0 comments on commit 1e726bd

Please sign in to comment.