From 96c5e641036a81f27ae8052d73ad8d02b4326ca6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 15 Feb 2024 01:29:57 -0500 Subject: Add DockerHub and GHCR logins This enables the docker pushes added in the last commit. --- .github/workflows/release-build.yaml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 95960fa..67b2f37 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -36,25 +36,23 @@ jobs: run: |- ./checkout.py ${{ inputs.version }} + - name: "Log in to Docker Hub" + uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: "Log in to the GHCR Container registry" + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ghcr.io + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} + - name: "Run builder for Docker containers" run: |- sudo ./build.py ${{ env.JELLYFIN_VERSION }} docker -# - name: "Push containers and manifests to DockerHub" -# uses: appleboy/ssh-action@v1.0.3 -# with: -# host: "${{ secrets.REPO_HOST }}" -# username: "${{ secrets.REPO_USER }}" -# key: "${{ secrets.REPO_KEY }}" -# debug: false -# script_stop: true -# script: | -# sudo mkdir -p /srv/repository/mirror/releases/server/debian/versions/${{ env.JELLYFIN_VERSION }}/${{ matrix.arch }} -# sudo mv -t /srv/repository/mirror/releases/server/debian/versions/${{ env.JELLYFIN_VERSION }}/${{ matrix.arch }}/ /srv/incoming/${{ env.JELLYFIN_VERSION }}/debian/${{ matrix.arch }}/${{ matrix.release }}/* -# if [[ ${{ inputs.version }} != "master" ]]; then -# sudo ln -s /srv/repository/mirror/releases/server/debian/versions/${{ env.JELLYFIN_VERSION }}/${{ matrix.arch }} /srv/repository/mirror/releases/server/debian/latest-server -# fi - Debian: runs-on: ubuntu-22.04 strategy: -- cgit