Skip to content

Commit

Permalink
Revamp workflow to populate new secret envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboniface committed Mar 4, 2024
1 parent 8ac1510 commit 5d15517
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
echo "JELLYFIN_RELEASE_TYPE=unstable" >> $GITHUB_ENV
fi
- name: "Get DockerHub and GHCR secrets"
id: dockercreds
run: |-
echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}" >> $GITHUB_ENV
echo "DOCKER_TOKEN=${{ secrets.DOCKER_TOKEN }}" >> $GITHUB_ENV
echo "GHCR_USERNAME=${{ secrets.GHCR_USERNAME }}" >> $GITHUB_ENV
echo "GHCR_TOKEN=${{ secrets.GHCR_TOKEN }}" >> $GITHUB_ENV
- name: "Install dependencies"
run: |-
sudo apt-get install --yes python3-git python3-yaml
Expand All @@ -42,24 +50,6 @@ jobs:
run: |-
sudo ./build.py ${{ env.JELLYFIN_VERSION }} docker
- name: "Log in to Docker Hub"
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
- name: "Push Docker images"
run: |-
for arch in amd64 arm64 armhf; do
docker push jellyfin/jellyfin:${{ env.JELLYFIN_VERSION }}-${arch}
done
# - 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 }}

# Debian:
# runs-on: ubuntu-22.04
# strategy:
Expand Down

0 comments on commit 5d15517

Please sign in to comment.