mirror of
https://github.com/sstent/containers.git
synced 2025-12-06 08:01:51 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'github-backup/*'
|
|
- '.github/workflows/github-backup.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
-
|
|
name: Log into registry
|
|
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: github-backup/
|
|
platforms: linux/arm/v7, Linux/amd64, linux/arm64/v8
|
|
push: true
|
|
file: github-backup/Dockerfile
|
|
tags: ghcr.io/sstent/github-backup:latest
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|