|
57 | 57 | VERSION=$(cat version.txt) |
58 | 58 | echo "release_version=$VERSION" >> $GITHUB_OUTPUT |
59 | 59 | fi |
60 | | - gradle: |
| 60 | + docker: |
61 | 61 | name: Build Docker Artifacts |
62 | 62 | runs-on: ubuntu-latest |
63 | 63 | needs: release |
|
78 | 78 | uses: gradle/actions/setup-gradle@v4 |
79 | 79 | - name: Build Docker Artifacts |
80 | 80 | run: ./gradlew jar optimizedBuildLayers optimizedDockerfile -Pversion=${{ needs.release.outputs.release_version }} |
81 | | - - name: Upload build artifacts |
82 | | - uses: actions/upload-artifact@v4 |
83 | | - with: |
84 | | - name: build |
85 | | - path: backend/build |
86 | | - |
87 | | -# dockerNative: |
88 | | -# runs-on: ubuntu-latest |
89 | | -# needs: gradle |
90 | | -# steps: |
91 | | -# - uses: actions/checkout@v4 |
92 | | -# - name: Download build artifacts |
93 | | -# uses: actions/download-artifact@v5 |
94 | | -# with: |
95 | | -# name: build |
96 | | -# path: backend/build |
97 | | -# - name: Docker meta |
98 | | -# id: meta |
99 | | -# uses: docker/metadata-action@v5 |
100 | | -# with: |
101 | | -# images: | |
102 | | -# ${{ secrets.HARBOR_REGISTRY }}/otis/otis-native |
103 | | -# tags: | |
104 | | -# type=semver,pattern={{version}},value=${{ needs.release.outputs.release_version }} |
105 | | -# type=semver,pattern={{major}}.{{minor}},value=${{ needs.release.outputs.release_version }} |
106 | | -# type=semver,pattern={{major}},value=${{ needs.release.outputs.release_version }} |
107 | | -# - name: Log in to OneLiteFeather Harbor |
108 | | -# uses: docker/login-action@v3 |
109 | | -# with: |
110 | | -# username: ${{ secrets.HARBOR_USERNAME }} |
111 | | -# password: ${{ secrets.HARBOR_PASSWORD }} |
112 | | -# registry: ${{ secrets.HARBOR_REGISTRY }} |
113 | | -# - name: Set up QEMU |
114 | | -# uses: docker/setup-qemu-action@v3 |
115 | | -# - name: Set up Docker Buildx |
116 | | -# uses: docker/setup-buildx-action@v3 |
117 | | -# - name: Build and push |
118 | | -# uses: docker/build-push-action@v6 |
119 | | -# with: |
120 | | -# push: true |
121 | | -# tags: ${{ steps.meta.outputs.tags }} |
122 | | -# labels: ${{ steps.meta.outputs.labels }} |
123 | | -# context: ./backend/build/docker/native-optimized |
124 | | - |
125 | | - docker: |
126 | | - runs-on: ubuntu-latest |
127 | | - needs: gradle |
128 | | - steps: |
129 | | - - uses: actions/checkout@v4 |
130 | | - - name: Download build artifacts |
131 | | - uses: actions/download-artifact@v5 |
132 | | - with: |
133 | | - name: build |
134 | | - path: backend/build |
135 | 81 | - name: Docker meta |
136 | 82 | id: meta |
137 | 83 | uses: docker/metadata-action@v5 |
|
0 commit comments