From 18c2c88d9f0fc06f05aca482d063c9b23ab59ba1 Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Wed, 13 Jul 2022 14:17:23 -0400 Subject: [PATCH] Switch to Codeberg CI --- .gitlab-ci.yml | 29 ----------------------------- .woodpecker/.build.yml | 14 ++++++++++++++ .woodpecker/.deploy.yml | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 .gitlab-ci.yml create mode 100644 .woodpecker/.build.yml create mode 100644 .woodpecker/.deploy.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 9fbd8a7..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,29 +0,0 @@ -variables: - REPO_NAME: codeberg.org/video-prize-ranch/rimgo - DOCKER_HOST: tcp://docker:2375 - -stages: - - build - - deploy - -docker: - image: docker:20 - stage: build - services: - - name: docker:20-dind - command: ["--experimental"] - before_script: - - mkdir -p ~/.docker/cli-plugins - - wget -O ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.8.1/buildx-v0.8.1.linux-amd64 - - chmod +x ~/.docker/cli-plugins/docker-buildx - script: - - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - docker context create mybuilder - - docker buildx create --use --name mybuilder mybuilder - - docker buildx build --platform linux/amd64,linux/arm64 --push -t $CI_REGISTRY_IMAGE:latest . - - docker create --name tmp $CI_REGISTRY_IMAGE:latest - - docker cp tmp:/app/rimgo rimgo - - docker rm -f tmp - artifacts: - paths: - - rimgo \ No newline at end of file diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml new file mode 100644 index 0000000..a833e24 --- /dev/null +++ b/.woodpecker/.build.yml @@ -0,0 +1,14 @@ +pipeline: + build: + image: woodpeckerci/plugin-docker-buildx + settings: + dockerfile: Dockerfile + registry: https://registry.gitlab.com/ + repo: registry.gitlab.com/overtime-zone-wildfowl/rimgo + platforms: linux/amd64,linux/arm64 + tag: latest + username: + from_secret: docker_username + password: + from_secret: docker_password + secrets: [docker_username, docker_password] \ No newline at end of file diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml new file mode 100644 index 0000000..03c5073 --- /dev/null +++ b/.woodpecker/.deploy.yml @@ -0,0 +1,15 @@ +pipeline: + deploy: + image: alpine:latest + commands: + - apk update && apk --no-cache add curl git + - wget -O - https://fly.io/install.sh | sh + - git clone https://codeberg.org/video-prize-ranch/fly-cfg.git + - cd fly-cfg + - /root/.fly/bin/flyctl deploy --detach + secrets: [fly_api_token] + +depends_on: + - build + +skip_clone: true \ No newline at end of file