Skip to content

Commit

Permalink
chore: add vars to starlark file to enable renovate (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Nov 21, 2023
1 parent 7f44253 commit 01d05a2
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .drone.star
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
DOCKER_PUSHRM_IMAGE = "docker.io/chko/docker-pushrm:1"
DRONE_DOCKER_BUILDX_IMAGE = "docker.io/owncloudci/drone-docker-buildx:1"
MARIADB_IMAGE = "docker.io/mariadb:10.6"
REDIS_IMAGE = "docker.io/redis:6"
UBUNTU_IMAGE = "docker.io/owncloud/ubuntu:20.04"
STANDALONE_CHROME_DEBUG_IMAGE = "docker.io/selenium/standalone-chrome-debug:3.141.59-oxygen"

def main(ctx):
versions = [
{
Expand Down Expand Up @@ -168,7 +175,7 @@ def docker(config):
},
{
"name": "mysql",
"image": "docker.io/mariadb:10.6",
"image": MARIADB_IMAGE,
"environment": {
"MYSQL_ROOT_PASSWORD": "owncloud",
"MYSQL_USER": "owncloud",
Expand All @@ -178,7 +185,7 @@ def docker(config):
},
{
"name": "redis",
"image": "docker.io/redis:6",
"image": REDIS_IMAGE,
},
],
"depends_on": [],
Expand Down Expand Up @@ -224,7 +231,7 @@ def docker(config):
},
{
"name": "mysql",
"image": "docker.io/mariadb:10.6",
"image": MARIADB_IMAGE,
"environment": {
"MYSQL_ROOT_PASSWORD": "owncloud",
"MYSQL_USER": "owncloud",
Expand All @@ -234,15 +241,15 @@ def docker(config):
},
{
"name": "redis",
"image": "docker.io/redis:6",
"image": REDIS_IMAGE,
},
{
"name": "email",
"image": "docker.io/inbucket/inbucket",
},
{
"name": "selenium",
"image": "docker.io/selenium/standalone-chrome-debug:3.141.59-oxygen",
"image": STANDALONE_CHROME_DEBUG_IMAGE,
},
],
"depends_on": [],
Expand Down Expand Up @@ -288,7 +295,7 @@ def documentation(config):
},
{
"name": "publish",
"image": "docker.io/chko/docker-pushrm:1",
"image": DOCKER_PUSHRM_IMAGE,
"environment": {
"DOCKER_PASS": {
"from_secret": "public_password",
Expand Down Expand Up @@ -371,7 +378,7 @@ def download(config):
def prepublish(config):
return [{
"name": "prepublish",
"image": "docker.io/owncloudci/drone-docker-buildx:1",
"image": DRONE_DOCKER_BUILDX_IMAGE,
"settings": {
"username": {
"from_secret": "internal_username",
Expand Down Expand Up @@ -446,7 +453,7 @@ def trivy(config):
def wait_server(config):
return [{
"name": "wait-server",
"image": "docker.io/owncloud/ubuntu:20.04",
"image": UBUNTU_IMAGE,
"commands": [
"wait-for-it -t 600 server:8080",
],
Expand All @@ -455,7 +462,7 @@ def wait_server(config):
def wait_email(config):
return [{
"name": "wait-email",
"image": "docker.io/owncloud/ubuntu:20.04",
"image": UBUNTU_IMAGE,
"commands": [
"wait-for-it -t 600 email:9000",
],
Expand Down Expand Up @@ -562,7 +569,7 @@ def ui(config):
def tests(config):
return [{
"name": "test",
"image": "docker.io/owncloud/ubuntu:20.04",
"image": UBUNTU_IMAGE,
"commands": [
"curl -sSf http://server:8080/status.php",
],
Expand All @@ -571,7 +578,7 @@ def tests(config):
def publish(config):
return [{
"name": "publish",
"image": "docker.io/owncloudci/drone-docker-buildx:1",
"image": DRONE_DOCKER_BUILDX_IMAGE,
"settings": {
"username": {
"from_secret": "public_username",
Expand Down

0 comments on commit 01d05a2

Please sign in to comment.