2019-12-07 21:19:22 +01:00
|
|
|
FROM alpine
|
2019-01-31 18:56:56 -05:00
|
|
|
|
2019-02-01 13:02:19 -05:00
|
|
|
# docker build -t vanessa/pull-request-action .
|
2019-01-31 18:56:56 -05:00
|
|
|
|
|
|
|
|
LABEL "com.github.actions.name"="Pull Request on Branch Push"
|
|
|
|
|
LABEL "com.github.actions.description"="Create a pull request when a branch is created or updated"
|
|
|
|
|
LABEL "com.github.actions.icon"="activity"
|
|
|
|
|
LABEL "com.github.actions.color"="yellow"
|
|
|
|
|
|
2023-12-07 19:35:49 -07:00
|
|
|
# Newer alpine we are not allowed to install to system python
|
|
|
|
|
RUN apk --no-cache add python3 py3-pip py3-virtualenv git bash && \
|
|
|
|
|
python3 -m venv /opt/env && \
|
|
|
|
|
/opt/env/bin/pip3 install requests
|
2020-09-24 11:58:11 -06:00
|
|
|
COPY pull-request.py /pull-request.py
|
2019-01-31 18:56:56 -05:00
|
|
|
|
2020-09-24 11:58:11 -06:00
|
|
|
RUN chmod u+x /pull-request.py
|
2023-12-07 19:35:49 -07:00
|
|
|
ENTRYPOINT ["/opt/env/bin/python3", "/pull-request.py"]
|