Skip to content

refactor(server): moved user logic to service #829

refactor(server): moved user logic to service

refactor(server): moved user logic to service #829

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: earthly/actions-setup@v1
with:
version: v0.8.0
- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- if: ${{ github.ref == format('refs/heads/{0}', 'master') }}
run: echo "IMAGE_LABEL=latest" >> $GITHUB_ENV
- if: ${{ github.ref == format('refs/heads/{0}', 'dev') }}
run: echo "IMAGE_LABEL=nightly" >> $GITHUB_ENV
- if: ${{ env.IMAGE_LABEL == '' }}
run: echo "IMAGE_LABEL=$BRANCH_NAME" >> $GITHUB_ENV
- run: echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build
run: earthly --ci --push +build-all --COMMIT_SHA=$SHORT_SHA --LABEL=$IMAGE_LABEL