Skip to content

Commit

Permalink
feat(infra): multiple entrypoints
Browse files Browse the repository at this point in the history
- Consolidates multiple trestle-bot entrypoints within the
published trestle-bot image.

Related PSCE-243, PSCE-250

Signed-off-by: Alex Flom <[email protected]>
  • Loading branch information
afflom committed Oct 10, 2023
1 parent c689a2f commit 3f6c1c3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 125 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ RUN microdnf install -y git \
&& microdnf clean all \
&& rm -rf /var/lib/apt/lists/*

COPY ./entrypoint.sh /
COPY ./trestlebot/infra/entrypoints/* /entrypoints/

RUN chmod +x /entrypoint.sh
RUN for f in /entrypoints/*; do chmod +x $f; done

ENTRYPOINT ["python3.9", "-m" , "trestlebot"]
CMD ["--help"]
Expand Down
91 changes: 0 additions & 91 deletions action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion actions/trestle-bot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ outputs:

runs:
using: "docker"
image: "Dockerfile"
image: "quay.io/continuouscompliance/trestlebot:latest"
entrypoint: "/entrypoint.sh"
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down
File renamed without changes.
31 changes: 0 additions & 31 deletions trestlebot/infra/entrypoints/create.py

This file was deleted.

0 comments on commit 3f6c1c3

Please sign in to comment.