|
48 | 48 | steps: |
49 | 49 | - name: add dependencies |
50 | 50 | run: apk add bash go |
51 | | - # Pinned a commit to make go version configurable. |
52 | | - # This should be safe to upgrade once this commit is in a released version: |
53 | | - # https://github.com/jidicula/go-fuzz-action/commit/23cc553941669144159507e2cccdbb4afc5b3076 |
54 | | - - uses: jidicula/go-fuzz-action@0206b61afc603b665297621fa5e691b1447a5e57 |
| 51 | + - uses: jidicula/go-fuzz-action@2d8b802597c47a79764d83dabc27fb672f2fb8d9 |
55 | 52 | with: |
56 | 53 | packages: 'github.com/sourcegraph/zoekt' # This is the package where the Protobuf round trip tests are defined |
57 | 54 | fuzz-time: 30s |
@@ -116,73 +113,3 @@ jobs: |
116 | 113 | # Check if the generated code is up-to-date |
117 | 114 | - run: .github/workflows/buf-generate-check.sh |
118 | 115 |
|
119 | | - # We build a shared docker image called "zoekt". This is not pushed, but is |
120 | | - # used for creating the indexserver and webserver images. |
121 | | - docker: |
122 | | - if: github.ref == 'refs/heads/main' |
123 | | - runs-on: ubuntu-latest |
124 | | - needs: |
125 | | - - "test" |
126 | | - - "shellcheck" |
127 | | - steps: |
128 | | - - name: checkout |
129 | | - uses: actions/checkout@v3 |
130 | | - |
131 | | - - name: version |
132 | | - id: version |
133 | | - run: .github/workflows/docker-version.sh |
134 | | - |
135 | | - - name: docker-meta-webserver |
136 | | - id: meta-webserver |
137 | | - uses: docker/metadata-action@v3 |
138 | | - with: |
139 | | - images: | |
140 | | - sourcegraph/zoekt-webserver |
141 | | - tags: | |
142 | | - type=ref,event=branch |
143 | | - type=ref,event=pr |
144 | | - type=semver,pattern={{version}} |
145 | | - type=sha |
146 | | - - name: docker-meta-indexserver |
147 | | - id: meta-indexserver |
148 | | - uses: docker/metadata-action@v3 |
149 | | - with: |
150 | | - images: | |
151 | | - sourcegraph/zoekt-indexserver |
152 | | - tags: | |
153 | | - type=ref,event=branch |
154 | | - type=ref,event=pr |
155 | | - type=semver,pattern={{version}} |
156 | | - type=sha |
157 | | -
|
158 | | - - name: build-zoekt |
159 | | - uses: docker/build-push-action@v4 |
160 | | - with: |
161 | | - context: . |
162 | | - tags: "zoekt:latest" |
163 | | - push: "false" |
164 | | - build-args: VERSION=${{ steps.version.outputs.value }} |
165 | | - |
166 | | - - name: Login to Docker Hub |
167 | | - uses: docker/login-action@v2 |
168 | | - with: |
169 | | - username: ${{ secrets.DOCKERHUB_USERNAME }} |
170 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
171 | | - |
172 | | - - name: build-push-webserver |
173 | | - uses: docker/build-push-action@v4 |
174 | | - with: |
175 | | - context: . |
176 | | - tags: sourcegraph/zoekt-webserver:${{ steps.version.outputs.value }}, ${{ steps.meta-webserver.outputs.tags }}, sourcegraph/zoekt-webserver:latest |
177 | | - file: Dockerfile.webserver |
178 | | - cache-from: sourcegraph/zoekt-webserver:latest |
179 | | - push: true |
180 | | - |
181 | | - - name: build-push-indexserver |
182 | | - uses: docker/build-push-action@v4 |
183 | | - with: |
184 | | - context: . |
185 | | - tags: sourcegraph/zoekt-indexserver:${{ steps.version.outputs.value }}, ${{ steps.meta-indexserver.outputs.tags }}, sourcegraph/zoekt-indexserver:latest |
186 | | - file: Dockerfile.indexserver |
187 | | - cache-from: sourcegraph/zoekt-indexserver:latest |
188 | | - push: true |
0 commit comments