Skip to content

Bump nokogiri from 1.14.3 to 1.16.5 in /docs #59

Bump nokogiri from 1.14.3 to 1.16.5 in /docs

Bump nokogiri from 1.14.3 to 1.16.5 in /docs #59

Workflow file for this run

name: PR Check
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet: [ '6.0']
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Clean
run: dotnet clean src/AmbientWeatherLocalServer.sln --configuration Debug && dotnet nuget locals all --clear
- name: Restore
run: dotnet restore src/AmbientWeatherLocalServer.sln
- name: Build
run: dotnet build src/AmbientWeatherLocalServer.sln --no-restore --configuration Debug
- name: Test
run: dotnet test src/AmbientWeatherLocalServer.sln
create-test-image:
name: Publish Docker - PR
runs-on: ubuntu-latest
needs: build-and-test
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PACKAGE_SECRET }}
- name: Prepare env
run: |
echo "BUILD_VERSION=${GITHUB_RUN_NUMBER}-${GITHUB_RUN_ID}" >> $GITHUB_ENV
- name: Build & Push to Package Repositories
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
file: ./docker/Dockerfile
platforms: linux/arm64,linux/amd64
build-args: VERSION=${{ env.BUILD_VERSION }}
tags: |
${{ secrets.DOCKER_USERNAME }}/ambientweather-local-server:pr
ghcr.io/${{ github.repository_owner }}/ambientweather-local-server:pr
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}