From edee371de55ef564e21926982d0f947d22dd414b Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 9 May 2023 20:46:38 +0200 Subject: [PATCH 1/2] add gitea ci --- .gitea/workflows/publish.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..366a1ae --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,27 @@ +name: Publish Docker image + +on: + [push] + +jobs: + push_to_registry: + name: Push Docker image to registry + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Log in to Container Registry + uses: https://github.com/docker/login-action@v2 + with: + registry: ${{ secrets.REGISTRY_SERVER }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and push Docker image + uses: https://github.com/docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ secrets.REGISTRY_SERVER }}/niku/streamrip-docker + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file From 97c6d977c7f10949b2b26aa0af7a48f7238357cd Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 9 May 2023 20:50:48 +0200 Subject: [PATCH 2/2] install docker --- .gitea/workflows/publish.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 366a1ae..bd843d4 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -11,6 +11,9 @@ jobs: - name: Check out the repo uses: actions/checkout@v3 + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + - name: Log in to Container Registry uses: https://github.com/docker/login-action@v2 with: