Skip to content

Commit

Permalink
Updated Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxCouncil committed Apr 20, 2023
1 parent 8e0c87c commit ee8cd7a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
release:
name: Release
name: Binaries Release
strategy:
matrix:
kind: ['linux', 'windows', 'macOS']
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down Expand Up @@ -56,3 +56,29 @@ jobs:
files: "VintageHive-v*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
name: Push to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: foxcouncil/vintagehive

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 4 additions & 0 deletions VintageHive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
<Folder Include="Statics\controllers\hive.com\settings\" />
</ItemGroup>

<ItemGroup>
<None Include=".github\workflows\ci-release.yml" />
</ItemGroup>

<ItemGroup>
<Using Include="System.Net" />
<Using Include="System.Text" />
Expand Down

0 comments on commit ee8cd7a

Please sign in to comment.