forked from TrueCloudLab/rclone
[#1] Add forgejo actions
Signed-off-by: Aleksey Kravchenko <al.kravchenko@yadro.com>
This commit is contained in:
parent
814e1a0d18
commit
d7751246e4
1 changed files with 11 additions and 17 deletions
|
@ -37,32 +37,26 @@ jobs:
|
|||
with:
|
||||
go-version: '${{ matrix.go_versions }}'
|
||||
|
||||
- name: Install docker
|
||||
run: |-
|
||||
apt-get update
|
||||
apt-get install -y ca-certificates curl wget
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
||||
chmod a+r /etc/apt/keyrings/docker.asc
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
apt-get update
|
||||
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
- name: Tests for the FrostFS backend
|
||||
env:
|
||||
RESTIC_TEST_FUSE: false
|
||||
AIO_IMAGE: truecloudlab/frostfs-aio
|
||||
AIO_VERSION: 1.7.0-nightly.4
|
||||
RCLONE_CONFIG: /rclone.conf
|
||||
RCLONE_CONFIG: /config/rclone.conf
|
||||
|
||||
# run only tests related to FrostFS backend
|
||||
run: |-
|
||||
podman-service.sh
|
||||
podman info
|
||||
|
||||
printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /rclone.conf
|
||||
mkdir config
|
||||
docker run -d -v config:/config --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080 --name aio $AIO_IMAGE:$AIO_VERSION
|
||||
|
||||
docker exec aio /usr/bin/issue-creds.sh native
|
||||
docker cp aio:/config/user-wallet.json /wallet.json
|
||||
printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /rclone.conf
|
||||
wget https://git.frostfs.info/TrueCloudLab/frostfs-aio/raw/branch/master/docker-compose.yml
|
||||
docker-compose up -d --wait
|
||||
docker cp aio:/config/user-wallet.json /config/wallet.json
|
||||
|
||||
until docker exec aio curl --fail http://localhost:8083 > /dev/null 2>&1; sleep 0.2; done;
|
||||
|
||||
go test -v github.com/rclone/rclone/backend/frostfs
|
||||
docker-compose down
|
||||
docker remove aio --force
|
Loading…
Add table
Reference in a new issue