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: "/" directory: "/"
schedule: schedule:
interval: "daily" 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) # 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: on:
pull_request: release:
branches:
- beta
types: types:
- closed - prereleased
schedule:
- cron: '42 3 * * 1'
workflow_dispatch:
jobs: jobs:
bulid-beta-node16-image: build-beta-node16-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 uses: actions/checkout@v2.4.0
with: with:
repository: 'buanet/ioBroker.docker' repository: 'buanet/ioBroker.docker'
ref: 'beta' ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date - name: Get and write version and date
id: version id: version

View File

@@ -1,25 +1,23 @@
# Github action to build Docker image from beta branch (tag: beta) # Github action to build Docker image from beta branch (tag: beta)
name: Build debian based image (beta) name: Build image (buanet/iobroker:beta)
on: on:
workflow_dispatch: release:
pull_request:
branches:
- beta
types: types:
- closed - prereleased
schedule:
- cron: '42 3 * * 1'
jobs: jobs:
bulid-beta-image: build-beta-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 uses: actions/checkout@v2.4.0
with: with:
repository: 'buanet/ioBroker.docker' repository: 'buanet/ioBroker.docker'
ref: 'beta' ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date - name: Get and write version and date
id: version id: version

View File

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

View File

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

View File

@@ -1,23 +1,23 @@
# Github action to build Docker image from main branch for iobroker/iobroker (tag: latest) # 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: on:
workflow_dispatch:
release: release:
types: types:
- published - released
schedule:
- cron: '42 3 * * 5'
jobs: jobs:
bulid-latest-image: build-latest-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 uses: actions/checkout@v2.4.0
with: with:
repository: 'buanet/ioBroker.docker' repository: 'buanet/ioBroker.docker'
ref: 'main' ref: ${{ env.RELEASE_TAG }}
- name: Get and write version and date - name: Get and write version and date
id: version id: version

View File

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