diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8a2fe0d --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file