diff --git a/.gitea/test-and-build.sh b/.gitea/test-and-build.sh index e5c8a3b..84e5bfa 100755 --- a/.gitea/test-and-build.sh +++ b/.gitea/test-and-build.sh @@ -16,7 +16,9 @@ curl \ "docker compose down -v --remove-orphans -t0", "echo \"${DOCKER_PASSWORD}\" | docker login gitea.larvit.se --username ${DOCKER_USERNAME} --password-stdin", "docker build -t gitea.larvit.se/pwrpln/auth-api:${GITHUB_REF_NAME} .", - "docker push gitea.larvit.se/pwrpln/auth-api:${GITHUB_REF_NAME}" + "docker push gitea.larvit.se/pwrpln/auth-api:${GITHUB_REF_NAME}", + "docker build -t gitea.larvit.se/pwrpln/auth-api-db-migrations:${GITHUB_REF_NAME} -f ./Dockerfile.migrations .", + "docker push gitea.larvit.se/pwrpln/auth-api-db-migrations:${GITHUB_REF_NAME}" ] } EOF diff --git a/README.md b/README.md index 9ee819f..e0554d4 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Run integration tests: `docker-compose run --rm tests` ## Deploy a new version -Everytime a push is done, tests are ran on [Drone](https://drone.larvit.se/pwrpln/auth-api). To deploy a new version to [Dockerhub](https://hub.docker.com/repository/docker/lilleman/auth-api), create a new tag (USE SEMVER!!!). +Everytime a push is done, tests are ran and if they are successful a new image will be published on https://gitea.larvit.se/pwrpln/auth-api:branch-name and https://gitea.larvit.se/pwrpln/auth-api-db-migrations:branch-name ## Some useful cURLs