wf updates

This commit is contained in:
STAM 2020-12-16 02:33:53 +03:00
parent adb8136679
commit 093ca8ae73
5 changed files with 43 additions and 0 deletions

View File

@ -141,6 +141,12 @@ jobs:
##########
- name: Build MatterMost (latest)
run: docker build --compress -t epicmorg/mattermost-enterprise-edition:latest mattermost/latest
- name: Build sysPass + php7.3 (latest)
run: docker build --compress -t epicmorg/syspass:latest syspass/sysPass-php7.3
- name: Build TeamCity Agent
run: docker build --compress -t epicmorg/teamcity-agent:latest teamcity/agent

View File

@ -74,6 +74,11 @@ jobs:
- name: Push sysPass + php7.3 (php7.3)
run: docker push epicmorg/syspass:php7.3
- name: Build MatterMost (latest)
run: docker build --compress -t epicmorg/mattermost-enterprise-edition:latest mattermost/latest
- name: Push MatterMost (latest)
run: docker push epicmorg/mattermost-enterprise-edition:latest
- name: Cleanup
run: docker system prune --all --force --volumes

View File

@ -0,0 +1,15 @@
FROM mattermost/mattermost-enterprise-edition as bootstrap
RUN cd ./bin && \
ls -las
FROM python:2.7-buster as edit
COPY edit.py /tmp/edit.py
COPY --from=bootstrap /mattermost/bin/mattermost /tmp/mattermost
RUN cd /tmp && \
./edit.py
FROM mattermost/mattermost-enterprise-edition
RUN rm -rfv /mattermost/bin/mattermost
COPY --from=edit /tmp/mattermost /mattermost/bin/
RUN cd ./bin && \
ls -las

View File

@ -0,0 +1,4 @@
all: mmed
mmed:
docker build --compress -t epicmorg/mattermost-enterprise-edition .
docker push epicmorg/mattermost-enterprise-edition:latest

13
mattermost/latest/edit.py Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/python2
import os
fp = open(os.path.join(os.path.dirname(__file__), "mattermost"), "r+b")
print("Try before buy (c)")
try:
pos = fp.read().find("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyZmShlU8Z8HdG0IWSZ8r\ntSyzyxrXkJjsFUf0Ke7bm/TLtIggRdqOcUF3XEWqQk5RGD5vuq7Rlg1zZqMEBk8N\nEZeRhkxyaZW8pLjxwuBUOnXfJew31+gsTNdKZzRjrvPumKr3EtkleuoxNdoatu4E\nHrKmR/4Yi71EqAvkhk7ZjQFuF0osSWJMEEGGCSUYQnTEqUzcZSh1BhVpkIkeu8Kk\n1wCtptODixvEujgqVe+SrE3UlZjBmPjC/CL+3cYmufpSNgcEJm2mwsdaXp2OPpfn\na0v85XL6i9ote2P+fLZ3wX9EoioHzgdgB7arOxY50QRJO7OyCqpKFKv6lRWTXuSt\nhwIDAQAB")
fp.seek(pos)
fp.write("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmCvX08GJRrbqYZbJtGXj\nXYmoRva8Yvk43uspBiNQoFYp0N8mWfmDhCqUzW7i9GZKDlEgn2IYoL2GxiRpSJaP\nirK8FGwD+o0efzhTHeGWOvD4e0c8gQZbpe85p17vha2i2xZiWQ4UBlq7jUFcuy6F\nfcgUK+fVI8+IvvjtkIZRqRLLlXCRnpuEWq/8vJF7yHql2jxiGUdXkFkZsgPgXizv\nmY0op5ui6n/f7ljVIIdad10OLNsW/xxk6VxirAIyuDZK9GSRGjjvDhi/yNcC0yJe\njYTCeDoD+GVh3twk+RyFo9S1AG7kKWtHTNu3MLh9/XnRJdpgrlAE7Z4+VfHrsbXp\ntwIDAQAB")
print("OK")
except:
print("Nothing to do")
finally:
fp.close()