diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000000..a6f55f824a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,64 @@ +--- +kind: pipeline +name: ci + +platform: + os: linux + arch: amd64 + +steps: +- name: ci + image: rancher/dapper:v0.5.3 + commands: + - dapper ci + environment: + GIT_IN_DAPPER: true + DOCKER_PASS: + from_secret: docker_password + DOCKER_USER: + from_secret: docker_username + volumes: + - name: docker + path: /var/run/docker.sock + when: + event: + - tag + instance: + - drone-publish.rancher.io + +- name: validate + image: rancher/dapper:v0.5.3 + commands: + - dapper validate + environment: + GIT_IN_DAPPER: true + volumes: + - name: docker + path: /var/run/docker.sock + when: + event: + - push + - pull_request + instance: + - drone-pr.rancher.io + +- name: build + image: rancher/dapper:v0.5.3 + commands: + - dapper build + environment: + GIT_IN_DAPPER: true + volumes: + - name: docker + path: /var/run/docker.sock + when: + event: + - push + - pull_request + instance: + - drone-pr.rancher.io + +volumes: +- name: docker + host: + path: /var/run/docker.sock \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18116c7dea..6f0c4aee26 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -431,40 +431,3 @@ jobs: if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }} run: | cd images/kube-webhook-certgen && make test test-e2e - - rancher-validate: - runs-on: ubuntu-latest - env: - PLATFORMS: linux/amd64 - container: - image: rancher/dapper:v0.5.3 - env: - GIT_IN_DAPPER: true - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: validate - run: | - dapper validate - - rancher-build: - needs: rancher-validate - runs-on: ubuntu-latest - env: - PLATFORMS: linux/amd64 - container: - image: rancher/dapper:v0.5.3 - env: - GIT_IN_DAPPER: true - steps: - - name: Install git - run: | - apk add --no-cache git - - - name: Checkout - uses: actions/checkout@v2 - - - name: build - run: | - dapper build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index e8619317ff..0000000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: release - -on: - push: - tags: - - '*' - -jobs: - - rancher-ci: - runs-on: ubuntu-latest - container: - image: rancher/dapper:v0.5.3 - env: - GIT_IN_DAPPER: true - DOCKER_USER: ${{ secrets.docker_username }} - DOCKER_PASS: ${{ secrets.docker_password }} - steps: - - name: Add git - run: | - apk add --no-cache git - - - name: Checkout - uses: actions/checkout@v2 - - - name: tag - run: | - dapper ci