Added new Actions and modified two Actions
parent
9c8b20f84c
commit
54a0cf8cde
|
@ -0,0 +1,21 @@
|
||||||
|
name: Build Docker image - on release
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
repository: rabobankcdc/dettect
|
||||||
|
tags: latest
|
||||||
|
tag_with_ref: true
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: Build Docker image - manual
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version_tag:
|
||||||
|
description: 'Format: v[version number]'
|
||||||
|
required: true
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
repository: rabobankcdc/dettect
|
||||||
|
tags: latest, ${{ github.event.inputs.version_tag }}
|
|
@ -1,6 +1,4 @@
|
||||||
name: Build the Editor
|
name: Build the Editor
|
||||||
|
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request events
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
@ -11,11 +9,10 @@ on:
|
||||||
- 'editor/package.json'
|
- 'editor/package.json'
|
||||||
- 'editor/vue.config.js'
|
- 'editor/vue.config.js'
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build":
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
|
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
|
||||||
|
|
|
@ -1,17 +1,13 @@
|
||||||
name: Update the DeTT&CT Editor on GitHub Pages
|
name: Update the DeTT&CT Editor on GitHub Pages
|
||||||
|
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request events
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths: 'editor/dist/dettect-editor/**'
|
paths: 'editor/dist/dettect-editor/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "copy"
|
|
||||||
copy:
|
copy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Update DeTT&CT Editor
|
- name: Update DeTT&CT Editor
|
||||||
|
|
Loading…
Reference in New Issue