From 4e3990bdf30e605a16b648c3bdeb714865395fd0 Mon Sep 17 00:00:00 2001 From: Aytac Kirmizi Date: Wed, 1 Feb 2023 16:02:30 +0100 Subject: [PATCH] **update** added gh actions for docker image creation and publishing --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/publish.yml 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