Skip to content

Clone, Build & Push OpenCanary to Docker Hub #26

Clone, Build & Push OpenCanary to Docker Hub

Clone, Build & Push OpenCanary to Docker Hub #26

name: Clone, Build & Push OpenCanary to Docker Hub
on:
schedule:
- cron: '0 0 1,15 * *'
workflow_dispatch:
jobs:
clone-build-push:
name: Clone Repo
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Clone Open Canary
run: |
git clone https://github.com/thinkst/opencanary.git .
cp Dockerfile.stable Dockerfile
pwd
-
name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v1
with:
images: mcnamee/opencanary
-
name: Build and push Docker image
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: mcnamee/opencanary:latest
context: /home/runner/work/opencanary/opencanary