From ad55615ecbb6ac2d28b2aa567ef02786eeaec9e5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 16 Feb 2025 15:30:30 +0100 Subject: [PATCH] chore(ci): Improve structure in devcontainer build --- .github/workflows/devcontainer-build.yml | 35 +++++++++++------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/devcontainer-build.yml b/.github/workflows/devcontainer-build.yml index e3b510b03..cb2a04709 100644 --- a/.github/workflows/devcontainer-build.yml +++ b/.github/workflows/devcontainer-build.yml @@ -24,22 +24,19 @@ jobs: build-and-push: runs-on: ubuntu-latest steps: - - - name: Checkout - id: checkout - uses: actions/checkout@v4 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Pre-build dev container image - uses: devcontainers/ci@v0.3 - with: - subFolder: .github - imageName: ghcr.io/${{ github.repository }}-devcontainer - cacheFrom: ghcr.io/${{ github.repository }}-devcontainer - push: always + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Pre-build dev container image + uses: devcontainers/ci@v0.3 + with: + subFolder: .github + imageName: ghcr.io/${{ github.repository }}-devcontainer + cacheFrom: ghcr.io/${{ github.repository }}-devcontainer + push: always