|
| 1 | +name: Release Docker Image (Build and Push) |
| 2 | + |
| 3 | +on: |
| 4 | + release: |
| 5 | + types: [published] |
| 6 | + |
| 7 | +jobs: |
| 8 | + geoserver: |
| 9 | + if: ${{ contains(github.ref, 'geoserver_') }} |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: winterjung/split@v2 |
| 13 | + id: split |
| 14 | + with: |
| 15 | + separator: "_" |
| 16 | + msg: ${{ github.ref }} |
| 17 | + - uses: actions/checkout@v3 |
| 18 | + with: |
| 19 | + ref: ${{ github.ref }} |
| 20 | + - uses: ./.github/actions/build_and_push |
| 21 | + with: |
| 22 | + image: "geoserver" |
| 23 | + branch: ${{ github.ref }} |
| 24 | + tag: ${{ steps.split.outputs._1 }} |
| 25 | + push: true |
| 26 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 27 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 28 | + postgis: |
| 29 | + if: ${{ contains(github.ref, 'postgis_') }} |
| 30 | + runs-on: ubuntu-latest |
| 31 | + steps: |
| 32 | + - uses: winterjung/split@v2 |
| 33 | + id: split |
| 34 | + with: |
| 35 | + separator: "_" |
| 36 | + msg: ${{ github.ref }} |
| 37 | + - uses: actions/checkout@v3 |
| 38 | + with: |
| 39 | + ref: ${{ github.ref }} |
| 40 | + - uses: ./.github/actions/build_and_push |
| 41 | + with: |
| 42 | + image: "postgis" |
| 43 | + branch: ${{ github.ref }} |
| 44 | + tag: ${{ steps.split.outputs._1 }} |
| 45 | + push: true |
| 46 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 47 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 48 | + nginx: |
| 49 | + if: ${{ contains(github.ref, 'nginx_') }} |
| 50 | + runs-on: ubuntu-latest |
| 51 | + steps: |
| 52 | + - uses: winterjung/split@v2 |
| 53 | + id: split |
| 54 | + with: |
| 55 | + separator: "_" |
| 56 | + msg: ${{ github.ref }} |
| 57 | + - uses: actions/checkout@v3 |
| 58 | + with: |
| 59 | + ref: ${{ github.ref }} |
| 60 | + - uses: ./.github/actions/build_and_push |
| 61 | + with: |
| 62 | + image: "nginx" |
| 63 | + branch: ${{ github.ref }} |
| 64 | + tag: ${{ steps.split.outputs._1 }} |
| 65 | + push: true |
| 66 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 67 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 68 | + data_dir_conf: |
| 69 | + if: ${{ contains(github.ref, 'data-dir-conf_') }} |
| 70 | + runs-on: ubuntu-latest |
| 71 | + steps: |
| 72 | + - uses: winterjung/split@v2 |
| 73 | + id: split |
| 74 | + with: |
| 75 | + separator: "_" |
| 76 | + msg: ${{ github.ref }} |
| 77 | + - uses: actions/checkout@v3 |
| 78 | + with: |
| 79 | + ref: ${{ github.ref }} |
| 80 | + - uses: ./.github/actions/build_and_push |
| 81 | + with: |
| 82 | + image: "data-dir-conf" |
| 83 | + branch: ${{ github.ref }} |
| 84 | + tag: ${{ steps.split.outputs._1 }} |
| 85 | + push: true |
| 86 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 87 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 88 | + letsencrypt: |
| 89 | + if: ${{ contains(github.ref, 'letsencrypt_') }} |
| 90 | + runs-on: ubuntu-latest |
| 91 | + steps: |
| 92 | + - uses: winterjung/split@v2 |
| 93 | + id: split |
| 94 | + with: |
| 95 | + separator: "_" |
| 96 | + msg: ${{ github.ref }} |
| 97 | + - uses: actions/checkout@v3 |
| 98 | + with: |
| 99 | + ref: ${{ github.ref }} |
| 100 | + - uses: ./.github/actions/build_and_push |
| 101 | + with: |
| 102 | + image: "letsencrypt" |
| 103 | + branch: ${{ github.ref }} |
| 104 | + tag: ${{ steps.split.outputs._1 }} |
| 105 | + push: true |
| 106 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 107 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
0 commit comments