diff --git a/ansible-operator.yaml b/ansible-operator.yaml deleted file mode 100644 index cad0db3ccc0..00000000000 --- a/ansible-operator.yaml +++ /dev/null @@ -1,72 +0,0 @@ -package: - name: ansible-operator - version: 1.36.1 - epoch: 0 - description: Ansible operator to run in kubernetes environments. - copyright: - - license: Apache-2.0 - dependencies: - runtime: - - py3-ansible-core - - py3-ansible-runner-http - - py3-kubernetes - - py3-pip - - py3-pipenv - - python3 - -pipeline: - - uses: git-checkout - with: - repository: https://github.com/operator-framework/ansible-operator-plugins - tag: v${{package.version}} - expected-commit: 60db7ce358a45ffb3ec8303944aaeb1a601aa560 - - - uses: go/build - with: - packages: ./cmd/ansible-operator/main.go - install-dir: local/bin - output: ansible-operator - ldflags: | - -X github.com/operator-framework/ansible-operator-plugins/internal/version.Version=${{package.version}} - -X github.com/operator-framework/ansible-operator-plugins/internal/version.GitVersion=$(git describe --dirty --tags --always) - -X github.com/operator-framework/ansible-operator-plugins/internal/version.GitCommit=$(git rev-parse HEAD) - - - runs: | - mkdir -p ${{targets.destdir}}/etc/ansible - echo "localhost ansible_connection=local" > ${{targets.destdir}}/etc/ansible/hosts - echo '[defaults]' > ${{targets.destdir}}/etc/ansible/ansible.cfg - echo 'roles_path = /opt/ansible/roles' >> ${{targets.destdir}}/etc/ansible/ansible.cfg - echo 'library = /usr/share/ansible/openshift' >> ${{targets.destdir}}/etc/ansible/ansible.cfg - -subpackages: - - name: ansible-operator-compat - description: ansible-operator compat to put binary at expected place by stream - pipeline: - - runs: | - mkdir -p ${{targets.subpkgdir}}/usr/local/bin - ln -sf /usr/bin/ansible-operator ${{targets.subpkgdir}}/usr/local/bin/ansible-operator - -update: - enabled: true - github: - identifier: operator-framework/ansible-operator-plugins - strip-prefix: v - tag-filter: v - -test: - environment: - contents: - packages: - - curl - pipeline: - - name: Check version - runs: | - ansible-operator version | grep -q ${{package.version}} - - name: Smoke test run - runs: | - mkdir -p /var/run/secrets/kubernetes.io/serviceaccount - echo dummy >/var/run/secrets/kubernetes.io/serviceaccount/token - export KUBERNETES_SERVICE_HOST=localhost KUBERNETES_SERVICE_PORT=6443 KUBERNETES_MASTER=https://localhost:6443 - ansible-operator run --watches-file=/dev/null 2>&1 & - sleep 1 - curl -sf localhost:6789/healthz