From ee8cd7a8ef246db6450a45006bd37fe1396003db Mon Sep 17 00:00:00 2001 From: Fox Date: Thu, 20 Apr 2023 01:31:37 -0700 Subject: [PATCH] Updated Github Actions --- .github/workflows/ci-release.yml | 30 ++++++++++++++++++++++++++++-- VintageHive.csproj | 4 ++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index f2e41b1..ced105d 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -6,7 +6,7 @@ on: jobs: release: - name: Release + name: Binaries Release strategy: matrix: kind: ['linux', 'windows', 'macOS'] @@ -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 @@ -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 }} \ No newline at end of file diff --git a/VintageHive.csproj b/VintageHive.csproj index fc911f8..6a483f1 100644 --- a/VintageHive.csproj +++ b/VintageHive.csproj @@ -114,6 +114,10 @@ + + + +