Auto-merge bot PRs
.github/workflows/auto-merge-bot.yaml (opens in new tab)Triggers
pull_request_target
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| automerge | ubuntu-latest | 2 | actions/create-github-app-token@v3 |
Raw YAML
name: Auto-merge bot PRs
on:
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
automerge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dockerhub-toolshed'
steps:
- uses: actions/create-github-app-token@v3
id: app-token
with:
app-id: 3114451
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Enable Pull Request Automerge
run: gh pr merge --merge --auto --repo "${{ github.repository }}" "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
Last fetched:
Build image
.github/workflows/ci.yaml (opens in new tab)Triggers
push pull_request
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| build-and-test | ubuntu-latest | 7 | actions/checkout@v4 actions/setup-python@v5 astral-sh/setup-uv@v7 |
Raw YAML
name: Build image
on: [push, pull_request]
env:
MULLED_NAMESPACE: biocontainers
MULLED_TOOL_UTIL_SOURCE: git+https://github.com/bgruening/galaxy.git@mulled_quay_enhancements#subdirectory=packages/tool_util
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v7
- run: docker --version
- run: docker info
- name: Build images
run: |
uv run --with "$MULLED_TOOL_UTIL_SOURCE" python -m galaxy.tool_util.deps.mulled.mulled_build_files --check-published --singularity --namespace $MULLED_NAMESPACE build-and-test ./combinations --verbose
- name: Upload images (if pushed to master branch)
if: github.ref == 'refs/heads/master' && github.repository_owner == 'BioContainers'
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
INVOLUCRO_AUTH: "https://${{ secrets.MY_USER }}:${{ secrets.MY_PASSWORD }}@quay.io/v1/?email=${{ secrets.MY_EMAIL }}"
run: |
mkdir -p ~/.ssh
ssh-keyscan -t rsa depot.galaxyproject.org >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.ORVAL_KEY }}"
uv run --with "$MULLED_TOOL_UTIL_SOURCE" python -m galaxy.tool_util.deps.mulled.mulled_build_files --check-published --namespace $MULLED_NAMESPACE --oauth-token ${{ secrets.QUAY_OAUTH_TOKEN }} push ./combinations
ls -l singularity_import
[ "$(ls -A singularity_import)" ] && echo 'uploading Singularity images' && scp singularity_import/*:* singularity@depot.galaxyproject.org:/srv/nginx/depot.galaxyproject.org/root/singularity/
Last fetched: