fleet/tools/tuf/test/push_target.sh
Lucas Manuel Rodriguez 7839716b8d
Prepare TUF scripts for CI and support different dev setups (#5616)
* Prepare TUF scripts for CI and support different dev setups

* Allow only generating selected platforms for pkgs

* Force linux/amd64 on Dockerfile to support M1
2022-05-11 17:00:18 -03:00

14 lines
445 B
Bash
Executable File

#!/bin/bash
system=$1
target_name=$2
target_path=$3
major_version=$4
TUF_PATH=test_tuf
export FLEET_ROOT_PASSPHRASE=p4ssphr4s3
export FLEET_TARGETS_PASSPHRASE=p4ssphr4s3
export FLEET_SNAPSHOT_PASSPHRASE=p4ssphr4s3
export FLEET_TIMESTAMP_PASSPHRASE=p4ssphr4s3
./build/fleetctl updates add --path $TUF_PATH --target $target_path --platform $system --name $target_name --version $major_version.0.0 -t $major_version.0 -t $major_version -t stable