diff --git a/.editorconfig b/.editorconfig index 51723a2..c713fa0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,3 +5,6 @@ indent_style = space indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true + +[*.yaml] +indent_size = 2 \ No newline at end of file diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..5ec7474 --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,13 @@ +steps: + - name: build + image: woodpeckerci/plugin-docker-buildx + settings: + platforms: linux/amd64 + repo: stawros/allure + registry: hattori.ztsh.eu + tags: ${CI_COMMIT_TAG} + username: stawros + password: + from_secret: hattori_pat + when: + - event: tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a26484d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +#The MIT License (MIT) +#Copyright 2020-2023 Anton Aftakhov + +FROM openjdk:8-jre-alpine + +ARG RELEASE=2.27.0 +ARG ALLURE_REPO=https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline + +RUN echo "$RELEASE" && \ + apk update && \ + apk add --no-cache bash wget unzip && \ + rm -rf /var/cache/apk/* + +RUN wget --no-verbose -O /tmp/allure-"$RELEASE".tgz "$ALLURE_REPO"/"$RELEASE"/allure-commandline-"$RELEASE".tgz && \ + tar -xf /tmp/allure-"$RELEASE".tgz && \ + rm -rf /tmp/* && \ + chmod -R +x /allure-"$RELEASE"/bin + +ENV ROOT=/app \ + PATH=$PATH:/allure-$RELEASE/bin + +RUN mkdir -p "$ROOT" + +WORKDIR $ROOT +COPY ./entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..8010903 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +ls -alh +allure --version