Skip to content

Clone should be recursive for successful build #59

Clone should be recursive for successful build

Clone should be recursive for successful build #59

Workflow file for this run

name: server
on:
push:
branches:
- master
tags:
- "v*.*.*"
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Init Jiff
run: git submodule init jiff
- name: Update
run: git submodule update
- name: Install
run: npm ci
- name: Move into JIff dir
run: cd jiff && npm ci
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
name/app
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
- name: Login to Docker Hub
uses: docker/login-action@v2
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Docker Build
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Push to Staging
uses: fjogeleit/http-request-action@v1
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
with:
method: "POST"
url: ${{ secrets.PORTAINER_WEBHOOK_PROD }}
preventFailureOnNoResponse: true