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

ci: Update dev-build template to run on every push and pull request. Tag...

ci: Update dev-build template to run on every push and pull request. Tag images based on branch which triggered the workflow. Also improve git- and dockerignore
parent 896dc0d4
No related branches found
No related tags found
No related merge requests found
.git
.gitignore
.github
.gitlab
.run
.gitlab-ci.yml
.releaserc.yml
renovate.json
.gitattributes
README.md
LICENSE.md
......
......@@ -2,16 +2,7 @@ name: Create Dev-Build
on:
push:
branches:
- main
- master
- develop
- dependabot
pull_request:
branches:
- main
- develop
- dependabot
workflow_dispatch:
jobs:
......@@ -21,30 +12,32 @@ jobs:
- uses: actions/checkout@v2
# DOCKER RELATED
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: griefed
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile.gradle.quasar.develop
platforms: linux/amd64,linux/arm64
push: true
tags: |
# ghcr.io/griefed/REPOSITORY:latest
# ghcr.io/griefed/REPOSITORY:${{ steps.tag.outputs.tag }}
# griefed/REPOSITORY:latest
# griefed/REPOSITORY:${{ steps.tag.outputs.tag }}
\ No newline at end of file
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: griefed
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v1
# with:
# 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
# platforms: linux/amd64,linux/arm64
# push: true
# tags: |
# ghcr.io/griefed/REPOSITORY:${{ github.ref_name }}
# ghcr.io/griefed/REPOSITORY:${{ github.ref_name }}-${{ github.sha }}
# griefed/REPOSITORY:${{ github.ref_name }}
# griefed/REPOSITORY:${{ github.ref_name }}-${{ github.sha }}
\ No newline at end of file
# Windows image file caches
Thumbs.db
ehthumbs.db
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Folder config file
Desktop.ini
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Windows shortcuts
*.lnk
# Coverage directory used by tools like istanbul
coverage
*.lcov
# IntelliJ Idea
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Repo specific
backend/main/resources/static
# eclipse
bin
*.launch
.settings
.metadata
.classpath
.project
.DS_Store
.thumbs.db
# Quasar core related directories
.quasar
/dist
frontend/node
node_modules/
# Editor directories and files
.idea
/frontend/node/
*.suo
*.ntvs*
*.njsproj
*.sln
out
*.ipr
*.iws
*.iml
# Yarn
yarn.lock
# gradle
/tests
/build
/.gradle
# other
eclipse
/testruns/*
!/testruns
\ No newline at end of file
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