-
-
Notifications
You must be signed in to change notification settings - Fork 2
[CI] Build ready to run containers #2
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
Draft
Misha-133
wants to merge
24
commits into
FluxpointDev:master
Choose a base branch
from
Misha-133:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
31d06ce
Create website.yml
Misha-133 89d05d6
Update website.yml
Misha-133 4a01cba
Update website.yml
Misha-133 cce3894
Update website.yml
Misha-133 5c3938e
Update DevSpaceWeb.csproj
Misha-133 009dda0
Update website.yml
Misha-133 c1d3e7b
Update website.yml
Misha-133 d1f027a
Update DevSpaceWeb.csproj
Misha-133 b068046
Update DevSpaceWeb.csproj
Misha-133 9962bb6
a
Misha-133 5cb7d15
yep
Misha-133 6db5094
idk
Misha-133 7f717f6
try №next
Misha-133 f01832c
oops
Misha-133 221f12d
agent workflows
Misha-133 ebaf06f
Merge branch 'master' of https://github.com/Misha-133/DevSpace
Misha-133 b1b30ef
Update agent.yml
Misha-133 548d655
Update website.yml
Misha-133 c4407ec
Update agent.yml
Misha-133 ad18f70
Update agent.yml
Misha-133 2fb4e07
Update DevSpaceWeb.csproj
Misha-133 20847dc
Update DevSpaceAgent.csproj
Misha-133 23b6c23
oh yeah right
Misha-133 ce434ef
Update DevSpaceAgent.csproj
Misha-133 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: DevSpaceAgent publish | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'DevSpaceAgent/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
8.x | ||
9.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore "DevSpaceAgent/DevSpaceAgent.csproj" -r linux-x64 | ||
|
||
- name: Build | ||
run: dotnet build "DevSpaceAgent/DevSpaceAgent.csproj" --no-restore -r linux-x64 -c Release | ||
|
||
- name: Publish | ||
if: github.ref == 'refs/heads/master' | ||
run: dotnet publish "DevSpaceAgent/DevSpaceAgent.csproj" --no-build -r linux-x64 -c Release /p:PublishProfile=Github |
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,36 @@ | ||
name: DevSpaceWeb publish | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'DevSpaceWeb/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore "DevSpaceWeb/DevSpaceWeb.csproj" -r linux-x64 | ||
|
||
- name: Build | ||
run: dotnet build "DevSpaceWeb/DevSpaceWeb.csproj" --no-restore -r linux-x64 -c Release | ||
|
||
- name: Publish | ||
if: github.ref == 'refs/heads/master' | ||
run: dotnet publish "DevSpaceWeb/DevSpaceWeb.csproj" --no-build -r linux-x64 -c Release /p:PublishProfile=Github |
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
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,16 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ContainerRepository>Misha-133/DevSpace/Agent</ContainerRepository> | ||
|
||
<ContainerBaseImage>mcr.microsoft.com/dotnet/runtime:8.0-alpine</ContainerBaseImage> | ||
<EnableSdkContainerSupport>true</EnableSdkContainerSupport> | ||
<WebPublishMethod>Container</WebPublishMethod> | ||
<ContainerRegistry>ghcr.io</ContainerRegistry> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ContainerPort Include="5555" Type="tcp" /> | ||
|
||
<ContainerLabel Include="org.opencontainers.image.source" Value="https://github.com/Misha-133/DevSpace" /> | ||
</ItemGroup> | ||
</Project> |
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
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,16 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ContainerRepository>Misha-133/DevSpace/Web</ContainerRepository> | ||
|
||
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:9.0-alpine</ContainerBaseImage> | ||
<EnableSdkContainerSupport>true</EnableSdkContainerSupport> | ||
<WebPublishMethod>Container</WebPublishMethod> | ||
<ContainerRegistry>ghcr.io</ContainerRegistry> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ContainerPort Include="5556" Type="tcp" /> | ||
|
||
<ContainerLabel Include="org.opencontainers.image.source" Value="https://github.com/Misha-133/DevSpace" /> | ||
</ItemGroup> | ||
</Project> |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this change where the package is published to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct. You can't just push to some arbitrary repository tho, as you are limited by
GITHUB_TOKEN
s scope