Skip to content

Fix image build context #2

Fix image build context

Fix image build context #2

Workflow file for this run

name: Build and Publish Docker Image
on:
push:
branches: [main]
release:
types: [published]
jobs:
docker-publish-backup-image:
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
download-artifacts: false
image-version: "latest"
image-name: "restic-compose-backup"
context: ./src
dockerfile: ./src/Dockerfile
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_REGISTRY_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_REGISTRY_PASSWORD }}
docker-publish-restore-image:
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
download-artifacts: false
image-version: "latest"
image-name: "restic-compose-backup-restore"
context: ./src
dockerfile: ./src/restore.Dockerfile
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_REGISTRY_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_REGISTRY_PASSWORD }}