docker-dev.yml 912 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Docker (dev)
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches: [ master ]
  6. jobs:
  7. build:
  8. name: Build Docker image
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: read
  12. packages: write
  13. steps:
  14. - uses: actions/checkout@v2
  15. - uses: docker/setup-qemu-action@v1
  16. - uses: docker/setup-buildx-action@v1
  17. - uses: docker/metadata-action@v3
  18. id: meta
  19. with:
  20. images: ghcr.io/dusk-labs/dim
  21. - uses: docker/login-action@v1
  22. with:
  23. registry: ghcr.io
  24. username: ${{ github.actor }}
  25. password: ${{ secrets.GITHUB_TOKEN }}
  26. - uses: docker/build-push-action@v2
  27. with:
  28. push: true
  29. context: .
  30. platforms: linux/amd64
  31. tags: ghcr.io/dusk-labs/dim:dev
  32. labels: ${{ steps.meta.outputs.labels }}
  33. cache-to: type=gha,mode=max
  34. cache-from: type=gha