Merge Dev into Master #15
This file contains 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
name: Docker Image CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Build the Docker image | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [ 'amd64' ] | |
#version: [ 'amd64', 'arm64' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev | |
sudo apt-get install libc6-dev libicu-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev librocksdb-dev | |
sudo apt-get install librocksdb-dev | |
dotnet tool install --global dotnet-reportgenerator-globaltool | |
dotnet restore | |
chmod +x ./publish-docker-${{ matrix.version }}.sh | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_API_KEY }} | |
- name: Build and Publish the Docker Image ${{ matrix.version }} | |
run: ./publish-docker-${{ matrix.version }}.sh |