Skip to content
Snippets Groups Projects
Commit d9fa19fb authored by Griefed's avatar Griefed :joystick:
Browse files

ci: Update workflow templates

parent d392b661
No related branches found
No related tags found
No related merge requests found
name: Create Dev-Build
name: Create Docker Dev-Build
on:
push:
......@@ -6,12 +6,10 @@ on:
workflow_dispatch:
jobs:
test:
docker-dev-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# DOCKER RELATED
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - name: Set up Docker Buildx
......@@ -27,13 +25,12 @@ jobs:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# CHANGE TO DOCKERFILE YOU WANT TO BUILD WITH
# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile
# build-args: BRANCH_OR_TAG=${{ github.ref_name }}
# platforms: linux/amd64,linux/arm64
# push: true
# tags: |
......
......@@ -6,87 +6,93 @@ on:
workflow_dispatch:
jobs:
test:
#===================================#
# JAVA #
#===================================#
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# IF JAVA PROJECT
# - name: Set up JDK 8
# uses: actions/setup-java@v2
# with:
# distribution: 'adopt'
# java-version: '8'
# - name: Where is Java
# run: which java
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
- name: Where is Java
run: which java
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
# - name: Build with Gradle
# run: ./gradlew about installQuasar cleanFrontend assembleFrontend copyDist build --info
# - name: List files in libs
# run: ls -ahl build/libs
# IF QUASAR PROJECT
# - name: Setup Node.js environment
# uses: actions/setup-node@v2.4.1
# with:
# # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
# node-version: '>= 16.9.1'
# # Set this option if you want the action to check for the latest available version that satisfies the version spec
# check-latest: false
#
#===================================#
# QUASAR #
#===================================#
quasar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2.4.1
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: '>= 16.9.1'
# Set this option if you want the action to check for the latest available version that satisfies the version spec
check-latest: false
# - run: npm install -g @quasar/cli
# - run: npm install
# - run: quasar build
# - run: pwd && ls -al *
# # DOCKER RELATED
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
#
#===================================#
# DOCKER #
#===================================#
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# - name: Build
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./Dockerfile.gradle.quasar
# file: ./Dockerfile
# build-args: BRANCH_OR_TAG=${{ github.ref_name }}
# platforms: linux/amd64,linux/arm64
# push: false
#===================================#
# ELECTRON #
#===================================#
electron:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout latest code
uses: actions/checkout@master
with:
fetch-depth: 0
# IF ELECTRON PROJECT
- name: We are running on
run: echo matrix.os is ${{ matrix.os }}
# Either:
# 1. macos-latest
# 2. ubuntu-latest
# 3. windows-latest
- name: Setup Node.js environment
uses: actions/setup-node@v2.4.1
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: '>= 16.9.1'
# Set this option if you want the action to check for the latest available version that satisfies the version spec
check-latest: false
# electron:
# needs: test
# runs-on: ${{ matrix.os }}
#
# strategy:
# matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
#
# steps:
# # GET LATEST CODE
# - name: Checkout latest code
# uses: actions/checkout@master
# with:
# fetch-depth: 0
#
# - name: We are running on
# run: echo matrix.os is ${{ matrix.os }}
# # Either:
# # 1. macos-latest
# # 2. ubuntu-latest
# # 3. windows-latest
#
# # SETUP NODE ENVIRONMENT
# - name: Setup Node.js environment
# uses: actions/setup-node@v2.4.1
# with:
# # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
# node-version: '>= 16.9.1'
# # Set this option if you want the action to check for the latest available version that satisfies the version spec
# check-latest: false
#
# - name: Build/release Electron app
# uses: vedaprakashms/quasar_electron_build@V0.0.1
# with:
......
FROM griefed/baseimage-ubuntu-jdk-8:2.0.0 AS builder
ARG BRANCH_OR_TAG=main
RUN \
apt-get update && apt-get upgrade -y && \
apt-get install -y \
libatomic1 && \
git clone \
-b main \
-b $BRANCH_OR_TAG \
REPOSITORY.git \
/tmp/REPOSITORY && \
chmod +x /tmp/REPOSITORY/gradlew* && \
......
FROM griefed/baseimage-ubuntu-jdk-8:2.0.0 AS builder
ARG BRANCH_OR_TAG=main
RUN \
apt-get update && apt-get upgrade -y && \
apt-get install -y \
libatomic1 && \
git clone \
-b develop \
-b $BRANCH_OR_TAG \
REPOSITORY.git \
/tmp/REPOSITORY && \
chmod +x /tmp/REPOSITORY/gradlew* && \
......
FROM node:16.13.1-alpine3.13 AS builder
ARG BRANCH_OR_TAG=main
RUN \
apk add \
git \
npm && \
git clone \
REPOSITORY.git \
/tmp/REPOSITORY && \
-b $BRANCH_OR_TAG \
REPOSITORY.git \
/tmp/REPOSITORY && \
cd /tmp/REPOSITORY && \
npm install -g npm@7.23.0 && \
npm install -g @quasar/cli && \
......
FROM node:16.13.1-alpine3.13 AS builder
ARG BRANCH_OR_TAG=main
RUN \
apk add \
git \
npm && \
git clone \
-b develop \
-b $BRANCH_OR_TAG \
REPOSITORY.git \
/tmp/REPOSITORY && \
cd /tmp/REPOSITORY && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment