|
6 | 6 | - master |
7 | 7 | - develop |
8 | 8 |
|
| 9 | +env: |
| 10 | + DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} |
| 11 | + DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} |
| 12 | + |
9 | 13 | jobs: |
10 | 14 | list-dir: |
11 | 15 | runs-on: ubuntu-latest |
@@ -39,21 +43,38 @@ jobs: |
39 | 43 |
|
40 | 44 | - name: Set up Docker Buildx |
41 | 45 | uses: docker/setup-buildx-action@v3 |
| 46 | + with: |
| 47 | + use: true |
42 | 48 |
|
43 | | - - name: Login to GitHub Container Registry |
44 | | - uses: docker/login-action@v2 |
| 49 | + # - name: Login to GitHub Container Registry |
| 50 | + # uses: docker/login-action@v2 |
| 51 | + # with: |
| 52 | + # registry: ghcr.io |
| 53 | + # username: ${{ github.repository_owner }} |
| 54 | + # password: ${{ secrets.GITHUB_TOKEN }} |
| 55 | + |
| 56 | + - name: Login to Docker registry |
| 57 | + |
45 | 58 | with: |
46 | | - registry: ghcr.io |
47 | | - username: ${{ github.repository_owner }} |
48 | | - password: ${{ secrets.GITHUB_TOKEN }} |
| 59 | + username: ${{ env.DOCKER_USERNAME }} |
| 60 | + password: ${{ env.DOCKER_PASSWORD }} |
49 | 61 |
|
50 | 62 | - name: Build and run Dev Container task |
51 | 63 | uses: devcontainers/[email protected] |
52 | 64 | with: |
53 | | - provenance: false |
54 | 65 | subFolder: ./templates/${{ matrix.dir }} |
55 | | - imageName: ghcr.io/pnstack/codespace/${{ matrix.dir }} |
56 | | - cacheFrom: ghcr.io/pnstack/codespace/${{ matrix.dir }}:latest |
| 66 | + imageName: npv2k1/codespace/${{ matrix.dir }} |
| 67 | + cacheFrom: npv2k1/codespace/${{ matrix.dir }}:latest |
57 | 68 | imageTag: ${{ github.ref == 'refs/heads/master' && 'latest' || github.ref_name }} |
58 | 69 | platform: linux/amd64,linux/arm64 |
59 | 70 | push: always |
| 71 | + |
| 72 | + # - name: Build and run Dev Container task |
| 73 | + # uses: devcontainers/[email protected] |
| 74 | + # with: |
| 75 | + # subFolder: ./templates/${{ matrix.dir }} |
| 76 | + # imageName: ghcr.io/pnstack/codespace/${{ matrix.dir }} |
| 77 | + # cacheFrom: ghcr.io/pnstack/codespace/${{ matrix.dir }}:latest |
| 78 | + # imageTag: ${{ github.ref == 'refs/heads/master' && 'latest' || github.ref_name }} |
| 79 | + # platform: linux/amd64,linux/arm64 |
| 80 | + # # push: always |
0 commit comments