Skip to content

Update NuGet packages #74

Update NuGet packages

Update NuGet packages #74

name: Build Inspector Gadget container and push to Docker Hub
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'WebApp/**'
jobs:
build-deploy-linux:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Docker Hub login
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image
run: docker build --no-cache --build-arg app_version=1.0.$GITHUB_RUN_NUMBER --build-arg source_version=$GITHUB_SHA -t jelledruyts/inspectorgadget:latest -f ./WebApp/Linux.Dockerfile ./WebApp
- name: Push Docker Image to Docker Hub
run: docker push jelledruyts/inspectorgadget:latest
- name: Push Docker Image to GitHub Package
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker tag jelledruyts/inspectorgadget:latest ghcr.io/jelledruyts/inspectorgadget:latest
docker push ghcr.io/jelledruyts/inspectorgadget:latest
build-deploy-windows:
runs-on: windows-2019
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Docker Hub login
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image
run: docker build --no-cache --build-arg app_version=1.0.${env:GITHUB_RUN_NUMBER} --build-arg source_version=${env:GITHUB_SHA} -t jelledruyts/inspectorgadget:latest-windows -f ./WebApp/Windows.Dockerfile ./WebApp
- name: Push Docker Image to Docker Hub
run: docker push jelledruyts/inspectorgadget:latest-windows
- name: Push Docker Image to GitHub Package
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker tag jelledruyts/inspectorgadget:latest-windows ghcr.io/jelledruyts/inspectorgadget:latest-windows
docker push ghcr.io/jelledruyts/inspectorgadget:latest-windows