diff --git a/.github/workflows/build-and-push-docker.yml b/.github/workflows/build-and-push-docker.yml new file mode 100644 index 0000000..fad022a --- /dev/null +++ b/.github/workflows/build-and-push-docker.yml @@ -0,0 +1,25 @@ +name: Build and Push Docker Image + +on: [pull_request] + +jobs: + build-and-push-docker: + runs-on: ubuntu-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: mattpolzin2 + password: ${{ secrets.DOCKERHUB_TOKEN }} + - uses: actions/checkout@v5 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build & Push + run: | + docker buildx build \ + -t mattpolzin2/api-test-server:${{ github.sha }} \ + --platform linux/amd64,linux/arm64 \ + --push \ + . diff --git a/.gitignore b/.gitignore index 189daed..e649f4c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ xcuserdata *.xcodeproj DerivedData/ .DS_Store +harmony.json