Files
decluttarr/.github/workflows/push-main-image-ghcr.yml
Benjamin Harder 1dc6f4dc5f autoversion test
2023-10-01 10:04:12 +02:00

37 lines
970 B
YAML

name: Deploy Images to GHCR
# env:
# DOTNET_VERSION: '6.0.x'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
push-decluttarr-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: '.'
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: tag-version
uses: juliansangillo/tag-version@v1.5
with:
production-branch: main
- name: 'Build Inventory Image'
run: |
docker build -f docker/Dockerfile . --tag ghcr.io/manimatter/decluttarr:latest
docker push ghcr.io/manimatter/decluttarr:latest