|
63 | 63 | ${{ steps.docker_image.outputs.image_repository }}:${{ steps.docker_image.outputs.image_tag }} |
64 | 64 | ${{ steps.docker_image.outputs.image_repository }}:${{ env.DEVCONTAINER_IMAGE_TAG_MAIN }} |
65 | 65 |
|
66 | | - style-checks: |
67 | | - runs-on: ubuntu-latest |
68 | | - needs: |
69 | | - - build-devcontainer |
70 | | - steps: |
71 | | - - uses: actions/checkout@v4 |
72 | | - with: |
73 | | - fetch-depth: 0 |
74 | | - - name: Docker image metadata |
75 | | - id: meta |
76 | | - uses: docker/metadata-action@v5 |
77 | | - with: |
78 | | - images: ${{ env.DEVCONTAINER_REGISTRY }}/${{ env.DEVCONTAINER_IMAGE_NAME }} |
79 | | - tags: | |
80 | | - type=ref,event=pr,prefix=cache-pr-,priority=600 |
81 | | - type=ref,event=branch,prefix=cache-,priority=500 |
82 | | - type=ref,event=tag,prefix=cache-,priority=500 |
83 | | - flavor: | |
84 | | - latest=false |
85 | | - - name: Extract Docker image name |
86 | | - id: docker_image |
87 | | - env: |
88 | | - IMAGE_TAGS: ${{ steps.meta.outputs.tags }} |
89 | | - run: | |
90 | | - IMAGE=$(echo "$IMAGE_TAGS" | cut -d" " -f1) |
91 | | - IMAGE_REPOSITORY=$(echo "$IMAGE" | cut -d":" -f1) |
92 | | - IMAGE_TAG=$(echo "$IMAGE" | cut -d":" -f2) |
93 | | - echo "image=$IMAGE" >> "$GITHUB_OUTPUT" |
94 | | - echo "image_repository=$IMAGE_REPOSITORY" >> "$GITHUB_OUTPUT" |
95 | | - echo "image_tag=$IMAGE_TAG" >> "$GITHUB_OUTPUT" |
96 | | - - uses: docker/login-action@v3 |
97 | | - with: |
98 | | - registry: ghcr.io |
99 | | - username: ${{ github.actor }} |
100 | | - password: ${{ secrets.GITHUB_TOKEN }} |
101 | | - - name: Pre-build devcontainer |
102 | | - uses: devcontainers/ci@v0.3 |
103 | | - continue-on-error: true |
104 | | - with: |
105 | | - push: always |
106 | | - skipContainerUserIdUpdate: false |
107 | | - imageName: ${{ steps.docker_image.outputs.image_repository }} |
108 | | - imageTag: ${{ steps.docker_image.outputs.image_tag }} |
109 | | - cacheFrom: | |
110 | | - ${{ steps.docker_image.outputs.image_repository }}:${{ steps.docker_image.outputs.image_tag }} |
111 | | - ${{ steps.docker_image.outputs.image_repository }}:${{ env.DEVCONTAINER_IMAGE_TAG_MAIN }} |
112 | | -
|
113 | 66 | style-checks: |
114 | 67 | runs-on: ubuntu-latest |
115 | 68 | needs: |
|
142 | 95 | push: never |
143 | 96 | skipContainerUserIdUpdate: false |
144 | 97 | cacheFrom: ${{ needs.build-devcontainer.outputs.image_repository }}:${{ needs.build-devcontainer.outputs.image_tag }} |
| 98 | + |
145 | 99 | test-main: |
146 | 100 | runs-on: ubuntu-latest |
147 | 101 | needs: |
|
0 commit comments