fix server lock up in high load scenarios #6
Workflow file for this run
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: Build and Publish | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
jobs: | |
build-and-publish-docker-image: | |
name: Build docker images and publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Packages | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build omnilock image and publish as specific tag | |
uses: docker/build-push-action@v5 | |
if: ${{ github.ref_type == 'tag' }} | |
with: | |
platforms: linux/amd64,linux/arm/v7,linux/arm64 | |
context: ./ | |
tags: "ghcr.io/${{ github.repository }}:${{ github.ref_name }}" | |
push: true | |
- name: Build omnilock image and publish as latest | |
uses: docker/build-push-action@v4 | |
if: ${{ github.ref_type != 'tag' }} | |
with: | |
platforms: linux/amd64,linux/arm/v7,linux/arm64 | |
context: ./ | |
tags: "ghcr.io/${{ github.repository }}:latest" | |
push: ${{ github.ref == 'refs/heads/main' }} |