-
Notifications
You must be signed in to change notification settings - Fork 0
New CI #890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
New CI #890
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| name: build | ||
| on: | ||
| push: | ||
| branches: [dev] | ||
| branches: | ||
| - 'release-*' | ||
|
|
||
| env: | ||
| REPO: ${{ github.repository }} | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,218 @@ | ||
| name: build | ||
| on: | ||
| push: | ||
| branches: [dev] | ||
|
|
||
| env: | ||
| REPO: ${{ github.repository }} | ||
|
|
||
| jobs: | ||
| build-ssh: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Build docker image | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_ssh_test:dev | ||
| DOCKER_BUILDKIT: '1' | ||
| run: | | ||
| echo $TAG | ||
| docker build integration_tests/ssh --tag $TAG --cache-from $TAG --build-arg BUILDKIT_INLINE_CACHE=1 | ||
| docker push $TAG | ||
|
|
||
| build-tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Build docker image | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_test:dev | ||
| DOCKER_BUILDKIT: '1' | ||
| run: | | ||
| echo $TAG | ||
| docker build --push --target=runtime -f .docker/test.Dockerfile . -t $TAG --cache-to type=gha,mode=max --cache-from $TAG --build-arg BUILDKIT_INLINE_CACHE=1 | ||
|
|
||
|
|
||
| run-ssh-test: | ||
| runs-on: ubuntu-latest | ||
| needs: [build-tests, build-ssh] | ||
| steps: | ||
| - 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: Pull tests | ||
| run: cd integration_tests/ssh && docker compose pull | ||
| - name: run test enviroment | ||
| run: cd integration_tests/ssh && docker compose up -d | ||
| - name: run ssh test | ||
| run: cd integration_tests/ssh && ./run.sh | ||
| - name: shutdown test enviroment | ||
rimu-stack marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| run: cd integration_tests/ssh && docker compose up -d | ||
rimu-stack marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| run-tests: | ||
| runs-on: ubuntu-latest | ||
| needs: build-tests | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Pull tests | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_test:dev | ||
| run: docker compose -f docker-compose.remote.test.yml pull | ||
| - name: Run tests | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_test:dev | ||
| run: docker compose -f docker-compose.remote.test.yml up --no-log-prefix --attach md-test --exit-code-from md-test | ||
| - name: Teardown tests | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_test:dev | ||
| run: docker compose -f docker-compose.remote.test.yml down | ||
|
|
||
| build-app: | ||
| runs-on: ubuntu-latest | ||
| needs: [build-tests, run-ssh-test, run-tests] | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Build docker image | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}:dev | ||
| DOCKER_BUILDKIT: '1' | ||
| run: | | ||
| echo $TAG | ||
| echo $TAG2 | ||
rimu-stack marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| docker build --push --target=runtime -f .docker/Dockerfile . -t $TAG --cache-to type=gha,mode=max --cache-from $TAG --build-arg BUILDKIT_INLINE_CACHE=1 | ||
|
|
||
| build-kerberos: | ||
| runs-on: ubuntu-latest | ||
| needs: [build-tests, run-ssh-test, run-tests] | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Build docker image | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_kerberos:dev | ||
| DOCKER_BUILDKIT: '1' | ||
| run: | | ||
| echo $TAG | ||
| docker build \ | ||
| --push \ | ||
| --target=runtime \ | ||
| -f .docker/krb.Dockerfile . \ | ||
| -t $TAG \ | ||
| --cache-to type=gha,mode=max \ | ||
| --cache-from $TAG \ | ||
| --build-arg BUILDKIT_INLINE_CACHE=1 \ | ||
| --build-arg VERSION=dev | ||
|
|
||
| build-bind9: | ||
| runs-on: ubuntu-latest | ||
| needs: [build-tests, run-ssh-test, run-tests] | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Build docker image | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_bind9:dev | ||
| DOCKER_BUILDKIT: '1' | ||
| run: | | ||
| echo $TAG | ||
| docker build \ | ||
| --push \ | ||
| --target=runtime \ | ||
| -f .docker/bind9.Dockerfile . \ | ||
| -t $TAG \ | ||
| --cache-to type=gha,mode=max \ | ||
| --cache-from $TAG \ | ||
| --build-arg BUILDKIT_INLINE_CACHE=1 \ | ||
| --build-arg VERSION=dev | ||
|
|
||
| build-keadhcp4: | ||
| runs-on: ubuntu-latest | ||
| needs: [build-tests, run-ssh-test, run-tests] | ||
| steps: | ||
| - name: downcase REPO | ||
| run: | | ||
| echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | ||
| - 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: Build docker image | ||
| env: | ||
| TAG: ghcr.io/${{ env.REPO }}_dhcp4:dev | ||
| DOCKER_BUILDKIT: '1' | ||
| run: | | ||
| echo $TAG | ||
| docker build \ | ||
| --push \ | ||
| --target=runtime \ | ||
| -f .docker/kea.Dockerfile . \ | ||
| -t $TAG \ | ||
| --cache-to type=gha,mode=max \ | ||
| --cache-from $TAG \ | ||
| --build-arg BUILDKIT_INLINE_CACHE=1 \ | ||
| --build-arg VERSION=dev | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.