Initial commit #2
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: Publish | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| docker: | |
| strategy: | |
| matrix: | |
| config: | |
| - tag: v0.29 | |
| rustc: v1.78.0 | |
| node: v22.8.0 | |
| solana: v1.17.25 | |
| anchor: v0.29.0 | |
| - tag: v0.30 | |
| rustc: v1.78.0 | |
| node: v22.8.0 | |
| solana: v1.18.17 | |
| anchor: v0.30.1 | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build and push Docker Image | |
| run: | | |
| docker build \ | |
| --build-arg RUSTC_VERSION=${{ matrix.config.rustc }} \ | |
| --build-arg NODE_VERSION=${{ matrix.config.node }} \ | |
| --build-arg SOLANA_CLI=${{ matrix.config.solana }} \ | |
| --build-arg ANCHOR_CLI=${{ matrix.config.anchor }} \ | |
| -t ghcr.io/wjthieme/anchor-build:${{ matrix.config.tag }} . | |
| docker push ghcr.io/wjthieme/anchor-build:${{ matrix.config.tag }} |