docker-image.yml 374 B

12345678910111213141516171819
  1. name: Docker Image CI
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - name: Build the Docker image
  13. run: docker buildx . --file Dockerfile --tag hongwenjun/nginx-php:$(date +%s) \
  14. --platform=linux/arm,linux/arm64,linux/amd64 --push