Skip to content

separate monitor container to check hourly backup #45

separate monitor container to check hourly backup

separate monitor container to check hourly backup #45

name: Publish Docker image
on:
push:
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- path: .
image: tamilwiki/mediawiki_backup_restore
- path: ./monitor
image: tamilwiki/mediawiki_backup_monitor
steps:
-
name: Check out the repo
uses: actions/checkout@v3
-
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@v3
with:
images: tamilwiki/mediawiki_backup_restore
-
name: Build and push Docker image for backup
uses: docker/build-push-action@v2
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
run: ls -l