You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-image.yml 905B

123456789101112131415161718192021222324252627282930313233343536
  1. name: 'ghcr'
  2. on:
  3. push:
  4. branches:
  5. - "master"
  6. - "stable"
  7. tags:
  8. - 'v*'
  9. jobs:
  10. build:
  11. name: 'Build'
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: "Build:checkout"
  15. uses: actions/checkout@v2
  16. - name: "Build:meta"
  17. id: meta
  18. uses: docker/metadata-action@v3
  19. with:
  20. images: ghcr.io/ergochat/ergo
  21. - name: "Build:login"
  22. uses: docker/login-action@v1
  23. if: github.event_name != 'pull_request'
  24. with:
  25. registry: ghcr.io
  26. username: ${{ github.repository_owner }}
  27. password: ${{ secrets.GITHUB_TOKEN }}
  28. - name: 'Build:dockerimage'
  29. uses: docker/build-push-action@v2
  30. with:
  31. context: .
  32. push: ${{ github.event_name != 'pull_request' }}
  33. tags: ${{ steps.meta.outputs.tags }}
  34. labels: ${{ steps.meta.outputs.labels }}