Portyard Logo
Portyard
Toggle sidebar
Documentation
Documentation
Learn how to use Portyard to store and manage your container images.

GitHub Actions

Automate your container builds and pushes with GitHub Actions.

Setup Secrets

Add the following secrets to your GitHub repository under Settings → Secrets and variables → Actions:

  • PORTYARD_USERNAME — Your Portyard username
  • PORTYARD_PASSWORD — Your Portyard password

Example Workflow

Create a file at .github/workflows/deploy.yml in your repository:

name: Build and Push on: push: branches: [main] env: REGISTRY: portyard.de IMAGE: john/app jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Log in to Portyard run: | echo "${{ secrets.PORTYARD_PASSWORD }}" | \ docker login $REGISTRY \ -u "${{ secrets.PORTYARD_USERNAME }}" \ --password-stdin - name: Build and push run: | docker build -t $REGISTRY/$IMAGE:${{ github.sha }} . docker build -t $REGISTRY/$IMAGE:latest . docker push $REGISTRY/$IMAGE --all-tags

Tip

Tag images with both the commit SHA and latest so you can always roll back to a specific build.

© 2026 Portyard. All rights reserved.