Try to login into GHCR.io #479
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: '30 4 * * *' | |
workflow_dispatch: | |
jobs: | |
Blender-releases: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Install Podman | |
run: sudo apt-get -y update && sudo apt-get -y install podman | |
- name: Login to Dockerhub | |
env: | |
PASSWORD: ${{ secrets.AGAJDOSI_DOCKERHUB_SECRET }} | |
run: podman login docker.io -u agajdosi -p $PASSWORD | |
- name: Build.py | |
run: python3 build.py | |
- name: Login to GHCR.io | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push the container image to GHCR.io | |
run: podman push ghcr.io/blenderkit/headless-blender:multi-version |