-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.33 KB
/
docker-verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Docker-verify
on:
schedule:
- cron: '45 4 * * *'
pull_request:
branches: [ "main" ]
push:
branches:
- 'releases/**'
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
#permissions:
# contents: write
#packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
#id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Split fhempy Version
id: split_fhempyV
run: |
echo "::set-output name=result::$(grep '^fhempy' requirements.txt | cut -d '=' -f3)"
- name: Find String
id: extract_image
run: |
echo "::set-output name=image_name::$(grep '^FROM' Dockerfile | cut -d ' ' -f2 | cut -d ':' -f1)"
echo "::set-output name=image_version::$(grep '^FROM' Dockerfile | cut -d ' ' -f2 | cut -d ':' -f2)"
- name: Build image and run integrationtests (amd64)
id: build_and_run_integrationtests
uses: ./.github/actions/integrationtest
with:
PLATTFORM: linux/amd64
FHEMPY_VERSION: ${{ steps.split_fhempyV.outputs.result }}