Fixed missing header #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Build and Push | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| - 'dev*' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ github.ref_name }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| docker: | |
| needs: release | |
| runs-on: ${{ matrix.arch.runner }} | |
| strategy: | |
| matrix: | |
| arch: | |
| - runner: ubuntu-24.04 | |
| platform: amd64 | |
| - runner: ubuntu-24.04-arm | |
| platform: arm64 | |
| image: | |
| - image-name: ton-http-api-cpp | |
| context: . | |
| dockerfile: Dockerfile | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| # TODO: fix this | |
| - name: Apply patch to ton-blockchain/ton | |
| run: | | |
| cd external/ton | |
| git apply ../../patches/ton_001.patch | |
| git diff | |
| # TODO: fix this | |
| - name: Apply patch to userver-framework/userver | |
| run: | | |
| cd external/userver | |
| git apply ../../patches/userver_001.patch | |
| git diff | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ${{ matrix.image.context }} | |
| file: ${{ matrix.image.context }}/${{ matrix.image.dockerfile }} | |
| platforms: linux/${{ matrix.arch.platform }} | |
| push: true | |
| tags: | | |
| ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image.image-name }}:${{ needs.release.outputs.version }}-${{ matrix.arch.platform }} | |
| manifest: | |
| needs: [docker, release] | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| image: | |
| - ton-http-api-cpp | |
| steps: | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Create and push manifest | |
| run: | | |
| docker manifest create ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:${{ needs.release.outputs.version }} \ | |
| --amend ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:${{ needs.release.outputs.version }}-amd64 \ | |
| --amend ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:${{ needs.release.outputs.version }}-arm64 | |
| docker manifest push ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image }}:${{ needs.release.outputs.version }} |