mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-18 04:53:58 +02:00
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: Main Deployment
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-main:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: '.'
|
|
steps:
|
|
- name: 'Checkout GitHub Action'
|
|
uses: actions/checkout@main
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up 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}}
|
|
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: '0'
|
|
|
|
- name: Bump version and push tag
|
|
uses: anothrNick/github-tag-action@1.36.0
|
|
id: setversion
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WITH_V: true
|
|
|
|
- name: "Build, Tag, and push the Docker image"
|
|
env:
|
|
IMAGE_NAME: ghcr.io/manimatter/decluttarr
|
|
IMAGE_TAG: ${{ steps.setversion.outputs.new_tag }}
|
|
run: |
|
|
docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME:$IMAGE_TAG -t $IMAGE_NAME:latest -f docker/Dockerfile --push .
|
|
|
|
# - name: "Build, Tag, and push the Docker image"
|
|
# env:
|
|
# IMAGE_NAME: ghcr.io/manimatter/decluttarr
|
|
# IMAGE_TAG: latest
|
|
# run: |
|
|
# docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME:$IMAGE_TAG -f docker/Dockerfile --push .
|
|
|