changes to ci

This commit is contained in:
buanet
2021-12-23 19:53:52 +01:00
parent a9d4f38bdb
commit 139a3beedd
7 changed files with 33 additions and 43 deletions

View File

@@ -5,4 +5,4 @@ updates:
directory: "/"
schedule:
interval: "daily"
target-branch: "dev"
target-branch: "main"

View File

@@ -1,25 +1,23 @@
# Github action to build Docker image from beta branch (tag: beta)
name: Build debian based image (beta-node16)
name: Build image (buanet/iobroker:beta-node16)
on:
pull_request:
branches:
- beta
release:
types:
- closed
schedule:
- cron: '42 3 * * 1'
workflow_dispatch:
- prereleased
jobs:
bulid-beta-node16-image:
build-beta-node16-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (beta)
- name: Getting published prerelease tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v2.4.0
with:
repository: 'buanet/ioBroker.docker'
ref: 'beta'
ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date
id: version

View File

@@ -1,25 +1,23 @@
# Github action to build Docker image from beta branch (tag: beta)
name: Build debian based image (beta)
name: Build image (buanet/iobroker:beta)
on:
workflow_dispatch:
pull_request:
branches:
- beta
release:
types:
- closed
schedule:
- cron: '42 3 * * 1'
- prereleased
jobs:
bulid-beta-image:
build-beta-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (beta)
- name: Getting published prerelease tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v2.4.0
with:
repository: 'buanet/ioBroker.docker'
ref: 'beta'
ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date
id: version

View File

@@ -3,19 +3,16 @@ name: Build debian based image (dev-node16)
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
bulid-dev-node16-image:
build-dev-node16-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (dev)
uses: actions/checkout@v2.4.0
with:
repository: 'buanet/ioBroker.docker'
ref: 'dev'
ref: 'main'
- name: Get and write version and date
id: version

View File

@@ -3,19 +3,16 @@ name: Build debian based image (dev)
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
bulid-dev-image:
build-dev-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (dev)
uses: actions/checkout@v2.4.0
with:
repository: 'buanet/ioBroker.docker'
ref: 'dev'
ref: 'main'
- name: Get and write version and date
id: version

View File

@@ -1,23 +1,23 @@
# Github action to build Docker image from main branch for iobroker/iobroker (tag: latest)
name: Build debian based image (latest)
name: Build image (iobroker/iobroker:latest)
on:
workflow_dispatch:
release:
types:
- published
schedule:
- cron: '42 3 * * 5'
- released
jobs:
bulid-latest-image:
build-latest-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (main)
- name: Getting published release tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Checkout repo
uses: actions/checkout@v2.4.0
with:
repository: 'buanet/ioBroker.docker'
ref: 'main'
ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date
id: version

View File

@@ -1,5 +1,5 @@
# Github action to build Docker image from main branch (tag: latest)
name: Build debian image (latest)
name: Build image (buanet/iobroker:latest)
on:
release:
@@ -7,7 +7,7 @@ on:
- released
jobs:
bulid-latest-image:
build-latest-image:
runs-on: ubuntu-latest
steps:
- name: Getting published release tag