joystream-apps-docker.yml 849 B

12345678910111213141516171819202122232425262728
  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: Extract branch name
  13. shell: bash
  14. run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
  15. id: extract_branch
  16. - name: Login to DockerHub
  17. uses: docker/login-action@v1
  18. with:
  19. username: ${{ secrets.DOCKERHUB_USERNAME }}
  20. password: ${{ secrets.DOCKERHUB_PASSWORD }}
  21. - name: Build and push
  22. id: docker_build
  23. uses: docker/build-push-action@v2
  24. with:
  25. file: apps.Dockerfile
  26. push: true
  27. tags: joystream/apps:${{ steps.extract_branch.outputs.branch }}-${{ github.event.inputs.tag_suffix }}