Initial commit #1
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 | |
| on: | |
| push: | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π© Checkout code. | |
| uses: actions/checkout@v3 | |
| - name: ποΈ Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: maven | |
| - name: ποΈ Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: ποΈ Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: βοΈ Compile the code. | |
| run: mvn clean package | |
| - name: π Login to GitHub Container Registry | |
| uses: docker/login-action@v1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{github.actor}} | |
| password: ${{secrets.GITHUB_TOKEN}} | |
| - name: π Build & Push image | |
| run: docker buildx build --platform=linux/amd64,linux/arm64/v8 --tag ghcr.io/casterlabs/kv:latest --push . |