|
44 | 44 | with: |
45 | 45 | name: target |
46 | 46 | path: target/ # or path/to/artifact |
| 47 | + |
| 48 | + deploy-debian7-x86_64: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + steps: |
| 51 | + |
| 52 | + with: |
| 53 | + servers: | |
| 54 | + [{ |
| 55 | + "id": "sonatype-nexus-snapshots", |
| 56 | + "username": "${{ secrets.SONATYPE_USERNAME }}", |
| 57 | + "password": "${{ secrets.SONATYPE_PASSWORD }}" |
| 58 | + }] |
| 59 | +
|
| 60 | + - uses: actions/checkout@v2 |
| 61 | + |
| 62 | + # Enable caching of Docker layers |
| 63 | + |
| 64 | + continue-on-error: true |
| 65 | + with: |
| 66 | + key: deploy-debian7-x86_64-docker-cache-{hash} |
| 67 | + restore-keys: | |
| 68 | + deploy-debian7-x86_64-docker-cache- |
| 69 | +
|
| 70 | + - name: Build docker image |
| 71 | + run: docker-compose -f docker/docker-compose.debian.yaml -f docker/docker-compose.debian-7.18.yaml build |
| 72 | + |
| 73 | + # only deploy the dynamic artifact as the static is deployed via centos. |
| 74 | + - name: Deploy project snapshot to sonatype |
| 75 | + run: docker-compose -f docker/docker-compose.debian.yaml -f docker/docker-compose.debian-7.18.yaml run deploy-dynamic-only |
| 76 | + |
| 77 | + - uses: actions/upload-artifact@v2 |
| 78 | + if: ${{ failure() }} |
| 79 | + with: |
| 80 | + name: target |
| 81 | + path: target/ # or path/to/artifact |
| 82 | + |
| 83 | + deploy-centos7-aarch64: |
| 84 | + runs-on: ubuntu-latest |
| 85 | + steps: |
| 86 | + |
| 87 | + with: |
| 88 | + servers: | |
| 89 | + [{ |
| 90 | + "id": "sonatype-nexus-snapshots", |
| 91 | + "username": "${{ secrets.SONATYPE_USERNAME }}", |
| 92 | + "password": "${{ secrets.SONATYPE_PASSWORD }}" |
| 93 | + }] |
| 94 | +
|
| 95 | + - uses: actions/checkout@v2 |
| 96 | + |
| 97 | + # Enable caching of Docker layers |
| 98 | + |
| 99 | + continue-on-error: true |
| 100 | + with: |
| 101 | + key: deploy-centos7-aarch64-docker-cache-{hash} |
| 102 | + restore-keys: | |
| 103 | + deploy-centos7-aarch64-docker-cache- |
| 104 | +
|
| 105 | + - name: Build docker image |
| 106 | + run: docker-compose -f docker/docker-compose.centos-7.yaml build |
| 107 | + |
| 108 | + - name: Deploy project snapshot to sonatype |
| 109 | + run: docker-compose -f docker/docker-compose.centos-7.yaml run cross-compile-aarch64-deploy |
| 110 | + |
| 111 | + - uses: actions/upload-artifact@v2 |
| 112 | + if: ${{ failure() }} |
| 113 | + with: |
| 114 | + name: target_aarch64 |
| 115 | + path: target/ # or path/to/artifact |