Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

35 rader
1.1 KiB

  1. on: ['pull_request']
  2. name: Build & Validate Image
  3. jobs:
  4. build:
  5. name: Build & Validate Image
  6. runs-on: self-hosted
  7. timeout-minutes: 2880
  8. env:
  9. working-directory: ./builder
  10. steps:
  11. - name: Checkout code
  12. uses: actions/checkout@v2
  13. - name: Build project
  14. id: builder
  15. working-directory: ${{ env.working-directory }}
  16. env:
  17. - CONTINUE: 1
  18. run: |
  19. bash build-docker.sh
  20. echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename)
  21. - name: Fix Permissions
  22. id: fix_perm_filename
  23. run: |
  24. chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
  25. echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
  26. - uses: actions/upload-artifact@v1
  27. with:
  28. name: ${{ steps.builder.outputs.filename }}
  29. path: ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
  30. - name: Delete Image
  31. id: delete_image
  32. run: |
  33. rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}