Skip to content

Docker-verify

Docker-verify #599

Workflow file for this run

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 }}