feat: support ipa ssh key #100
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 Image CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build-amd64: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3.1.0 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Docker Setup Buildx | |
| uses: docker/setup-buildx-action@v3.3.0 | |
| - name: Build and push AMD64 image | |
| run: docker buildx build --platform linux/amd64 -t mrhaoxx/ng:main-amd64 -f Dockerfile . --push | |
| build-arm64: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3.1.0 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Docker Setup Buildx | |
| uses: docker/setup-buildx-action@v3.3.0 | |
| - name: Build and push ARM64 image | |
| run: docker buildx build --platform linux/arm64 -t mrhaoxx/ng:main-arm64 -f Dockerfile . --push | |
| create-manifest: | |
| runs-on: ubuntu-latest | |
| needs: [build-amd64, build-arm64] | |
| steps: | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3.1.0 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Docker Setup Buildx | |
| uses: docker/setup-buildx-action@v3.3.0 | |
| - name: Create and push multi-arch manifest | |
| run: | | |
| docker buildx imagetools create -t mrhaoxx/ng:main \ | |
| mrhaoxx/ng:main-amd64 \ | |
| mrhaoxx/ng:main-arm64 |