fix: update GitHub Container Registry token reference in CI workflows… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Validate DevContainer' | |
| description: 'This workflow is checking that updates do not break stuff. If on main branch, publish to latest tag.' | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: 'Check, Build, Test, Publish DevContainer' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout (GitHub) | |
| uses: actions/checkout@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check, Build, Test, Publish | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| cacheFrom: ghcr.io/eclipse-score/devcontainer | |
| imageName: ghcr.io/eclipse-score/devcontainer | |
| # publish latest from main branch; tags are handled in release workflow | |
| imageTag: latest | |
| refFilterForPush: 'refs/heads/main' | |
| runCmd: | | |
| # Check | |
| pre-commit run --show-diff-on-failure --color=always --all-files || exit -1 | |
| # Build | |
| ./scripts/build.sh | |
| # Test | |
| ./scripts/test.sh |