1
0
mirror of https://github.com/varbhat/exatorrent.git synced 2021-09-19 22:57:02 +03:00
Files
exatorrent-seedbox-server-cli/.github/workflows/docker.yml
2021-08-26 02:23:47 +05:30

46 lines
1.3 KiB
YAML

name: Create and publish Container Images
on:
push:
tags:
- v*
jobs:
build-container-images:
if: ${{ github.owner }} == "varbhat"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the amd64 image
run: docker buildx build --load --platform "linux/amd64" . --tag ghcr.io/varbhat/exatorrent:amd64
- name: Build the arm64 image
run: docker buildx build --load --platform "linux/arm64" . --tag ghcr.io/varbhat/exatorrent:arm64
- name: Push Images
run: docker push ghcr.io/varbhat/exatorrent -a
- name: Create and Push Manifest
run: |
docker manifest create ghcr.io/varbhat/exatorrent:latest ghcr.io/varbhat/exatorrent:amd64 ghcr.io/varbhat/exatorrent:arm64
docker manifest push ghcr.io/varbhat/exatorrent:latest