build-and-push-test-image.yml 830 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: build-and-push-test-image
  2. on:
  3. push:
  4. branches: [main]
  5. jobs:
  6. build-and-push-test-image:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v3
  10. - name: Set up QEMU
  11. uses: docker/setup-qemu-action@v2
  12. - name: Login to Docker Hub
  13. uses: docker/login-action@v2
  14. with:
  15. username: neosmemo
  16. password: ${{ secrets.DOCKER_NEOSMEMO_TOKEN }}
  17. - name: Set up Docker Buildx
  18. id: buildx
  19. uses: docker/setup-buildx-action@v2
  20. with:
  21. install: true
  22. version: v0.9.1
  23. - name: Build and Push
  24. id: docker_build
  25. uses: docker/build-push-action@v3
  26. with:
  27. context: ./
  28. file: ./Dockerfile
  29. platforms: linux/amd64
  30. push: true
  31. tags: neosmemo/memos:test