From 8450b9b77ff3f2db5d42747517320d4060d59f5f Mon Sep 17 00:00:00 2001 From: Jean Pereira Date: Sun, 13 Feb 2022 15:38:39 +1000 Subject: [PATCH] Changed the automation. --- .travis.yml | 14 -------------- Dockerfile | 2 +- create_docker.sh | 8 ++++++++ 3 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 .travis.yml create mode 100644 create_docker.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3631a9d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -arch: arm64 -os: linux - -services: - - docker - -env: - - MM_VERSION="v6.3.0" - -script: - - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - - docker build --build-arg MM_VERSION="${MM_VERSION}" -t $DOCKER_USERNAME/mattermost:latest -t $DOCKER_USERNAME/mattermost:${MM_VERSION} . - - docker push $DOCKER_USERNAME/mattermost:latest - - docker push $DOCKER_USERNAME/mattermost:${MM_VERSION} diff --git a/Dockerfile b/Dockerfile index 606264e..ff3413f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=arm64 rockylinux/rockylinux:8 +FROM --platform=arm64 rockylinux:8 # Some ENV variables ENV PATH="/opt/mattermost/bin:${PATH}" diff --git a/create_docker.sh b/create_docker.sh new file mode 100644 index 0000000..3bf0d9d --- /dev/null +++ b/create_docker.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +MM_VERSION="v$(lastversion https://github.com/SmartHoneybee/ubiquitous-memory/)" + +docker login -u="${RD_OPTION_DOCKER_USERNAME}" -p="${RD_OPTION_DOCKER_PASSWORD}" +docker build --build-arg MM_VERSION="${MM_VERSION}" -t ${RD_OPTION_DOCKER_USERNAME}/mattermost:latest -t ${RD_OPTION_DOCKER_USERNAME}/mattermost:${MM_VERSION} . +docker push ${RD_OPTION_DOCKER_USERNAME}/mattermost:latest +docker push ${RD_OPTION_DOCKER_USERNAME}/mattermost:${MM_VERSION} \ No newline at end of file