diff --git a/.concourse/pipeline.yml b/.concourse/pipeline.yml deleted file mode 100644 index 02236c5..0000000 --- a/.concourse/pipeline.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -resources: - - name: weekly - type: time - source: - interval: 168h - - name: ci-images.git - type: git - icon: github - source: - uri: https://code.icb4dc0.de/inetmock/ci-images.git - -jobs: - - name: go-ci - plan: - - in_parallel: - - get: weekly - trigger: true - - get: ci-images.git - trigger: true - - task: go-ci-image - file: ci-images.git/.concourse/tasks/go-ci.yml - input_mapping: - repo: ci-images.git \ No newline at end of file diff --git a/.concourse/tasks/go-ci.yml b/.concourse/tasks/go-ci.yml deleted file mode 100644 index 729a081..0000000 --- a/.concourse/tasks/go-ci.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -platform: linux - -image_resource: - type: registry-image - source: - repository: gcr.io/kaniko-project/executor - tag: debug - -inputs: - - name: repo - path: . - -params: - GITEA_USER: ((gitea-credentials.user)) - GITEA_TOKEN: ((gitea-credentials.token)) - -run: - path: sh - args: - - -cex - - | - echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $GITEA_USER $GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json - - /kaniko/executor --destination code.icb4dc0.de/inetmock/ci-images/go-ci:latest --context go-ci/ diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2558f81 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + +- name: go-ci + image: gcr.io/kaniko-project/executor:debug + network_mode: host + commands: + - > + echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $$GITEA_USER $$GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json + - /kaniko/executor --destination "$${IMAGE_REPO}:$${IMAGE_TAG}" --context "$${BUILD_CONTEXT}" + environment: + GITEA_USER: prskr + GITEA_TOKEN: + from_secret: gitea_token + IMAGE_REPO: code.icb4dc0.de/inetmock/ci-images/go-ci + IMAGE_TAG: latest + BUILD_CONTEXT: go-ci/ \ No newline at end of file