Adding the repository to CI/CD pipeline
[osm/tests.git] / devops-stages / stage-archive.sh
index 013953f..56a1c5c 100755 (executable)
 # implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+MDG=tests
+
+rm -rf pool
+rm -rf dists
+mkdir -p pool/$MDG
+mv deb_dist/*.deb pool/$MDG/
+
+mkdir -p dists/unstable/$MDG/binary-amd64/
+apt-ftparchive packages pool/$MDG > dists/unstable/$MDG/binary-amd64/Packages
+gzip -9fk dists/unstable/$MDG/binary-amd64/Packages
+
 echo "ARCHIVE"