@@ -74,24 +74,24 @@ case $COMMAND in
74
74
$command
75
75
;;
76
76
dry-upload|upload)
77
- TARGETS=" amazon redhat windows macosx debian/bookworm debian/trixie ubuntu/jammy ubuntu/focal ubuntu/noble"
77
+ TARGETS=" amazon redhat windows debian/bookworm debian/trixie ubuntu/jammy ubuntu/noble"
78
78
DRYRUN_OPTION=" --dryrun"
79
79
if [ $COMMAND = " upload" ]; then
80
80
DRYRUN_OPTION=" "
81
81
fi
82
82
for target in $TARGETS ; do
83
83
case $FLUENT_RELEASE_DIR in
84
84
* test/experimental/lts)
85
- command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /5 /$target s3://packages.treasuredata.com/test/experimental/lts/5 /$target --profile $FLUENT_RELEASE_PROFILE "
85
+ command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /6 /$target s3://packages.treasuredata.com/test/experimental/lts/6 /$target --profile $FLUENT_RELEASE_PROFILE "
86
86
;;
87
87
* test/experimental)
88
- command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /5 /$target s3://packages.treasuredata.com/test/experimental/5 /$target --profile $FLUENT_RELEASE_PROFILE "
88
+ command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /6 /$target s3://packages.treasuredata.com/test/experimental/6 /$target --profile $FLUENT_RELEASE_PROFILE "
89
89
;;
90
90
* lts)
91
- command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /5 /$target s3://packages.treasuredata.com/lts/5 /$target --profile $FLUENT_RELEASE_PROFILE "
91
+ command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /6 /$target s3://packages.treasuredata.com/lts/6 /$target --profile $FLUENT_RELEASE_PROFILE "
92
92
;;
93
93
* )
94
- command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /5 /$target s3://packages.treasuredata.com/5 /$target --profile $FLUENT_RELEASE_PROFILE "
94
+ command=" aws s3 sync $DRYRUN_OPTION --delete $FLUENT_RELEASE_DIR /6 /$target s3://packages.treasuredata.com/6 /$target --profile $FLUENT_RELEASE_PROFILE "
95
95
;;
96
96
esac
97
97
echo $command
@@ -139,45 +139,45 @@ EOF
139
139
sleep 10
140
140
export GPG_TTY=$( tty)
141
141
for d in bookworm trixie jammy noble; do
142
- aptly -config=" $aptly_conf " repo create -distribution=$d -component=contrib fluent-package5 -$d
142
+ aptly -config=" $aptly_conf " repo create -distribution=$d -component=contrib fluent-package6 -$d
143
143
case $d in
144
144
bookworm|trixie)
145
- aptly -config=" $aptly_conf " repo add fluent-package5 -$d $FLUENT_RELEASE_DIR /5 /debian/$d /
146
- aptly -config=" $aptly_conf " snapshot create fluent-package5 -$d -${FLUENT_PACKAGE_VERSION} -1 from repo fluent-package5 -$d
145
+ aptly -config=" $aptly_conf " repo add fluent-package6 -$d $FLUENT_RELEASE_DIR /6 /debian/$d /
146
+ aptly -config=" $aptly_conf " snapshot create fluent-package6 -$d -${FLUENT_PACKAGE_VERSION} -1 from repo fluent-package6 -$d
147
147
# publish snapshot with prefix, InRelease looks like (e.g. bullseye):
148
148
# Origin: bullseye bullseye
149
149
# Label: bullseye bullseye
150
- aptly -config=" $aptly_conf " publish snapshot -component=contrib -gpg-key=$SIGNING_KEY fluent-package5 -$d -${FLUENT_PACKAGE_VERSION} -1 $d
150
+ aptly -config=" $aptly_conf " publish snapshot -component=contrib -gpg-key=$SIGNING_KEY fluent-package6 -$d -${FLUENT_PACKAGE_VERSION} -1 $d
151
151
# Place generated files, package files themselves are already in there
152
- tar cf - --exclude=" td-agent_*.deb" --exclude=" fluent-package_*.deb" -C " $aptly_rootdir /public" $d | tar xvf - -C $FLUENT_RELEASE_DIR /5 /debian/
152
+ tar cf - --exclude=" td-agent_*.deb" --exclude=" fluent-package_*.deb" -C " $aptly_rootdir /public" $d | tar xvf - -C $FLUENT_RELEASE_DIR /6 /debian/
153
153
;;
154
154
jammy|noble)
155
- aptly -config=" $aptly_conf " repo add fluent-package5 -$d $FLUENT_RELEASE_DIR /5 /ubuntu/$d /
156
- aptly -config=" $aptly_conf " snapshot create fluent-package5 -$d -${FLUENT_PACKAGE_VERSION} -1 from repo fluent-package5 -$d
155
+ aptly -config=" $aptly_conf " repo add fluent-package6 -$d $FLUENT_RELEASE_DIR /6 /ubuntu/$d /
156
+ aptly -config=" $aptly_conf " snapshot create fluent-package6 -$d -${FLUENT_PACKAGE_VERSION} -1 from repo fluent-package6 -$d
157
157
# publish snapshot with prefix, InRelease looks like (e.g. focal):
158
158
# Origin: focal focal
159
159
# Label: focal focal
160
- aptly -config=" $aptly_conf " publish snapshot -component=contrib -gpg-key=$SIGNING_KEY fluent-package5 -$d -${FLUENT_PACKAGE_VERSION} -1 $d
160
+ aptly -config=" $aptly_conf " publish snapshot -component=contrib -gpg-key=$SIGNING_KEY fluent-package6 -$d -${FLUENT_PACKAGE_VERSION} -1 $d
161
161
# Place generated files, package files themselves are already in there
162
- tar cf - --exclude=" td-agent_*.deb" --exclude=" fluent-package_*.deb" -C " $aptly_rootdir /public" $d | tar xvf - -C $FLUENT_RELEASE_DIR /5 /ubuntu/
162
+ tar cf - --exclude=" td-agent_*.deb" --exclude=" fluent-package_*.deb" -C " $aptly_rootdir /public" $d | tar xvf - -C $FLUENT_RELEASE_DIR /6 /ubuntu/
163
163
;;
164
164
esac
165
165
done
166
166
rm -rf " $aptly_rootdir " " $aptly_conf "
167
167
;;
168
168
rpm)
169
169
# resign rpm packages
170
- find $FLUENT_RELEASE_DIR /5 -name " *$FLUENT_PACKAGE_VERSION *.rpm"
170
+ find $FLUENT_RELEASE_DIR /6 -name " *$FLUENT_PACKAGE_VERSION *.rpm"
171
171
echo " Ready to type signing passphrase? (process starts in 10 seconds, Ctrl+C to abort)"
172
172
sleep 10
173
173
export GPG_TTY=$( tty)
174
- find $FLUENT_RELEASE_DIR /5 -name " *$FLUENT_PACKAGE_VERSION *.rpm" | xargs rpm --resign --define " _gpg_name $SIGNING_KEY "
174
+ find $FLUENT_RELEASE_DIR /6 -name " *$FLUENT_PACKAGE_VERSION *.rpm" | xargs rpm --resign --define " _gpg_name $SIGNING_KEY "
175
175
# check whether packages are signed correctly.
176
- find $FLUENT_RELEASE_DIR /5 -name " *$FLUENT_PACKAGE_VERSION *.rpm" | xargs rpm -K || \
176
+ find $FLUENT_RELEASE_DIR /6 -name " *$FLUENT_PACKAGE_VERSION *.rpm" | xargs rpm -K || \
177
177
(echo " Import public key to verify: rpm --import https://s3.amazonaws.com/packages.treasuredata.com/GPG-KEY-fluent-package" && exit 1)
178
178
179
179
# update & sign rpm repository
180
- repodirs=` find " ${FLUENT_RELEASE_DIR} " -regex " ^${FLUENT_RELEASE_DIR} /5 /\(redhat\|amazon\)/\([2789]\|2023\)/\(x86_64\|aarch64\)$" `
180
+ repodirs=` find " ${FLUENT_RELEASE_DIR} " -regex " ^${FLUENT_RELEASE_DIR} /6 /\(redhat\|amazon\)/\([2789]\|10 \|2023\)/\(x86_64\|aarch64\)$" `
181
181
for repodir in $repodirs ; do
182
182
createrepo_c -v --compatibility " ${repodir} "
183
183
0 commit comments