mirror of
https://github.com/versity/versitygw.git
synced 2026-01-08 20:43:07 +00:00
Using Docker ENTRYPOINT should allow for configuration of running versitygw within Docker container similar to how the systemd service is setup with environment variables. This also adds the backends azure and plugin to the acceptable backend options for both docker and systemd. Fixes #1335
29 lines
825 B
YAML
29 lines
825 B
YAML
name: docker bats tests
|
|
permissions: {}
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker Image
|
|
run: |
|
|
cp tests/.env.docker.default tests/.env.docker
|
|
cp tests/.secrets.default tests/.secrets
|
|
docker build \
|
|
--build-arg="GO_LIBRARY=go1.23.1.linux-amd64.tar.gz" \
|
|
--build-arg="AWS_CLI=awscli-exe-linux-x86_64.zip" \
|
|
--build-arg="MC_FOLDER=linux-amd64" \
|
|
--progress=plain \
|
|
-f tests/Dockerfile_test_bats \
|
|
-t bats_test .
|
|
|
|
- name: Run Docker Container
|
|
run: |
|
|
docker compose -f tests/docker-compose-bats.yml --project-directory . \
|
|
up --exit-code-from s3api_np_only s3api_np_only
|