Mohammed Naser | a4e5290 | 2022-08-30 00:20:05 -0400 | [diff] [blame] | 1 | name: test |
| 2 | on: |
| 3 | pull_request: {} |
Mohammed Naser | f6880e2 | 2022-08-30 18:25:08 -0400 | [diff] [blame] | 4 | concurrency: |
| 5 | group: ${{ github.head_ref }} |
| 6 | cancel-in-progress: true |
Mohammed Naser | a4e5290 | 2022-08-30 00:20:05 -0400 | [diff] [blame] | 7 | |
| 8 | jobs: |
Mohammed Naser | dc70287 | 2022-09-01 19:15:49 -0400 | [diff] [blame] | 9 | # build-prometheus-ethtool-exporter: |
| 10 | # runs-on: ubuntu-latest |
| 11 | # steps: |
| 12 | # - uses: actions/checkout@v3.0.2 |
| 13 | # with: |
| 14 | # fetch-depth: 0 |
| 15 | # - uses: tj-actions/changed-files@v29.0.2 |
| 16 | # id: changed-files |
| 17 | # with: |
| 18 | # files: images/prometheus-ethtool-exporter/* |
| 19 | # - uses: docker/setup-qemu-action@v2.0.0 |
| 20 | # if: steps.changed-files.outputs.any_changed == 'true' |
| 21 | # - uses: docker/setup-buildx-action@v2.0.0 |
| 22 | # if: steps.changed-files.outputs.any_changed == 'true' |
| 23 | # - run: echo PROJECT_REF=$(cat images/prometheus-ethtool-exporter/ref) >> $GITHUB_ENV |
| 24 | # if: steps.changed-files.outputs.any_changed == 'true' |
| 25 | # - uses: docker/login-action@v2.0.0 |
| 26 | # if: steps.changed-files.outputs.any_changed == 'true' |
| 27 | # with: |
| 28 | # registry: quay.io |
| 29 | # username: ${{ secrets.QUAY_USERNAME }} |
| 30 | # password: ${{ secrets.QUAY_ROBOT_TOKEN }} |
| 31 | # - uses: docker/build-push-action@v3.1.1 |
| 32 | # if: steps.changed-files.outputs.any_changed == 'true' |
| 33 | # with: |
| 34 | # context: images/prometheus-ethtool-exporter |
| 35 | # cache-from: type=gha,scope=prometheus-ethtool-exporter |
| 36 | # cache-to: type=gha,mode=max,scope=prometheus-ethtool-exporter |
| 37 | # platforms: linux/amd64,linux/arm64 |
| 38 | # push: true |
| 39 | # build-args: | |
| 40 | # PROJECT_REF=${{ env.PROJECT_REF }} |
| 41 | # tags: | |
| 42 | # quay.io/vexxhost/ethtool-exporter:${{ env.PROJECT_REF }} |
Mohammed Naser | bd5667e | 2022-09-01 17:38:14 -0400 | [diff] [blame] | 43 | |
Mohammed Naser | d4e634d | 2022-08-30 18:46:03 -0400 | [diff] [blame] | 44 | molecule: |
| 45 | runs-on: ubuntu-latest |
| 46 | # needs: |
Mohammed Naser | dc70287 | 2022-09-01 19:15:49 -0400 | [diff] [blame] | 47 | # - build-prometheus-ethtool-exporter |
Mohammed Naser | d4e634d | 2022-08-30 18:46:03 -0400 | [diff] [blame] | 48 | # - build-openstack-images |
| 49 | steps: |
| 50 | - uses: actions/checkout@v3.0.2 |
| 51 | # TODO: run cleanup |
Mohammed Naser | 09d8ea8 | 2022-09-03 19:16:18 -0400 | [diff] [blame^] | 52 | |
| 53 | - name: Set up Go |
| 54 | uses: actions/setup-go@v3.3.0 |
| 55 | with: |
| 56 | go-version-file: go.mod |
| 57 | cache: true |
| 58 | |
| 59 | - name: Clean-up stale stacks |
| 60 | run: go run ci/molecule.go |
| 61 | env: |
| 62 | OS_AUTH_URL: https://auth.vexxhost.net/v3 |
| 63 | OS_REGION_NAME: ca-ymq-1 |
| 64 | OS_USER_DOMAIN_NAME: Default |
| 65 | OS_USERNAME: ${{ secrets.OS_USERNAME }} |
| 66 | OS_PASSWORD: ${{ secrets.OS_PASSWORD }} |
| 67 | OS_PROJECT_DOMAIN_NAME: Default |
| 68 | OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }} |
| 69 | |
| 70 | - uses: gofrolist/molecule-action@v2.2.40 |
Mohammed Naser | 783c6d2 | 2022-08-31 19:22:19 -0400 | [diff] [blame] | 71 | timeout-minutes: 90 |
Mohammed Naser | d4e634d | 2022-08-30 18:46:03 -0400 | [diff] [blame] | 72 | env: |
Mohammed Naser | 21ef80e | 2022-08-31 17:19:14 -0400 | [diff] [blame] | 73 | ATMOSPHERE_STACK_NAME: "atmosphere-${{ github.run_id }}-${{ github.run_attempt }}" |
Mohammed Naser | d4e634d | 2022-08-30 18:46:03 -0400 | [diff] [blame] | 74 | OS_AUTH_URL: https://auth.vexxhost.net/v3 |
| 75 | OS_REGION_NAME: ca-ymq-1 |
| 76 | OS_USER_DOMAIN_NAME: Default |
| 77 | OS_USERNAME: ${{ secrets.OS_USERNAME }} |
| 78 | OS_PASSWORD: ${{ secrets.OS_PASSWORD }} |
| 79 | OS_PROJECT_DOMAIN_NAME: Default |
| 80 | OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }} |
| 81 | |