Skip to content

Merge branch 'certtools:develop' into develop #7

Merge branch 'certtools:develop' into develop

Merge branch 'certtools:develop' into develop #7

Workflow file for this run

# Github Workflow to build container image
#
# SPDX-FileCopyrightText: 2021 Sebastian Waldbauer
# SPDX-License-Identifier: AGPL-3.0-or-later
#
name: "Build and upload docker image"
on:
push:
branches: ['develop']
paths-ignore:
- '.github/**'
jobs:
docker:
name: Building Docker image
runs-on: ubuntu-latest
steps:
- name: Check if environment is ACT
run: sudo chown runner:docker /var/run/docker.sock
if: ${{ env.ACT }}
- name: Checkout IntelMQ-Docker
uses: actions/checkout@v3
with:
ref: 'main'
repository: certat/intelmq-docker
path: ./work
- name: Checkout IntelMQ-Manager
uses: actions/checkout@v3
with:
ref: 'develop'
repository: certtools/intelmq-manager
path: ./work/intelmq-manager
- name: Checkout IntelMQ-API
uses: actions/checkout@v3
with:
ref: 'develop'
repository: certtools/intelmq-api
path: ./work/intelmq-api
- name: Checkout IntelMQ
uses: actions/checkout@v3
with:
ref: 'develop'
path: ./work/intelmq
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
if: github.repository == 'certtools/intelmq' && !${{ env.ACT }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Install python build requirements
run: |
pip3 install mako
- name: Build
run: |
cd work
./build.sh
- name: Test
run: |
cd work
./test.sh
- name: Publish develop version to dockerhub
if: github.repository == 'certtools/intelmq' && !${{ env.ACT }}
run: |
docker tag intelmq-full:latest certat/intelmq-full:develop
docker push certat/intelmq-full:develop