diff --git a/Dockerfile b/Dockerfile index bacf22c..7d1bd1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM gitea/gitea:1.11.2 COPY . ${WORKDIR} RUN mkdir -p /app/ -COPY release.sh /app/ + +COPY postdeploy.sh /app/ EXPOSE 3000 diff --git a/Procfile b/Procfile deleted file mode 100644 index 2a613ac..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -release: bash /app/release.sh diff --git a/app.json b/app.json index d6c97eb..5cce3e8 100644 --- a/app.json +++ b/app.json @@ -1,5 +1,10 @@ { "name": "gitea", "description": "Gitea is a painless self-hosted Git service.", - "repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku" + "repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku", + "scripts": { + "dokku": { + "postdeploy": "bash /app/postdeploy.sh" + } + } } diff --git a/release.sh b/postdeploy.sh similarity index 100% rename from release.sh rename to postdeploy.sh