joystream-apps-docker.yml 906 B

123456789101112131415161718192021222324252627282930
  1. name: Build joystream/apps and publish to Docker Hub
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. tag_suffix:
  6. description: 'Tag suffix'
  7. required: true
  8. jobs:
  9. docker:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v2
  14. - name: Extract branch name
  15. shell: bash
  16. run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
  17. id: extract_branch
  18. - name: Login to DockerHub
  19. uses: docker/login-action@v1
  20. with:
  21. username: ${{ secrets.DOCKERHUB_USERNAME }}
  22. password: ${{ secrets.DOCKERHUB_PASSWORD }}
  23. - name: Build and push
  24. id: docker_build
  25. uses: docker/build-push-action@v2
  26. with:
  27. file: apps.Dockerfile
  28. push: true
  29. tags: joystream/apps:${{ steps.extract_branch.outputs.branch }}-${{ github.event.inputs.tag_suffix }}