Skip to content

Commit

Permalink
chore(action): add action
Browse files Browse the repository at this point in the history
add action

Signed-off-by: kovacs <[email protected]>
  • Loading branch information
mritd committed Nov 1, 2023
1 parent 6aaed87 commit 796052e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
workflow_call:
inputs:
build-dir:
required: true
type: string

env:
FORCE_COLOR: 1
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Put back the git branch into git (Earthly uses it for tagging)
shell: bash
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Docker Login
shell: bash
run: docker login --username "${DOCKERHUB_USERNAME}" --password "${DOCKERHUB_PASSWORD}"
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install Deps
shell: bash
run: |
apt update && apt upgrade -y
npm install -g pnpm @go-task/cli
task

0 comments on commit 796052e

Please sign in to comment.