Files
decluttarr/.github/workflows/push-main-image-ghcr.yml
Benjamin Harder 508905adbd test
2023-09-30 17:23:47 +02:00

34 lines
917 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: './own_coding/decluttarr/'
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: 'Build Inventory Image'
run: |
# docker build . --tag ghcr.io/ManiMatter/decluttarr:latest
docker build docker/Dockerfile --tag ghcr.io/ManiMatter/decluttarr:latest
docker push ghcr.io/ManiMatter/decluttarr:latest