**update** added gh actions for docker image creation and publishing

This commit is contained in:
Aytac Kirmizi 2023-02-01 16:02:30 +01:00
parent 0a1e04d30d
commit 4e3990bdf3

33
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Deploy Images to GHCR
env:
DOTNET_VERSION: '6.0.x'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
push-store-image:
runs-on: ubuntu-latest
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 -f ./Dockerfile_Wallabag --tag ghcr.io/spaytac/wallabag-sync:latest .
docker push ghcr.io/spaytac/wallabag-sync:latest
- name: 'Build Inventory Image'
run: |
docker build -f ./Dockerfile_Linkding --tag ghcr.io/spaytac/linkding-updater:latest .
docker push ghcr.io/spaytac/linkding-updater:latest