Skip to content

Commit

Permalink
Merge pull request #2910 from regro/fix-jobs
Browse files Browse the repository at this point in the history
fix: container tag is busted in pull
  • Loading branch information
beckermr authored Aug 5, 2024
2 parents aa5ff4f + 09df60e commit 2c70b3b
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bot-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: bot-v2

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
bot:
name: bot
Expand Down Expand Up @@ -54,7 +57,6 @@ jobs:
MEMORY_LIMIT_GB: 7
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
CF_TICK_CONTAINER_TAG: latest

- name: status of changes
if: github.ref == 'refs/heads/master' && always() && ! env.CI_SKIP
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: bot-cache

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
bot-cache:
name: bot-cache
Expand Down Expand Up @@ -62,7 +65,6 @@ jobs:
env:
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
CF_TICK_CONTAINER_TAG: latest

bot-cache-trigger:
needs: bot-cache
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/bot-make-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: bot-make-graph

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
update-nodes:
name: update-nodes
Expand Down Expand Up @@ -51,7 +54,6 @@ jobs:
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
BOT_JOB: ${{ matrix.job_num }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && always() && ! env.CI_SKIP
Expand Down Expand Up @@ -114,7 +116,6 @@ jobs:
env:
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && always() && ! env.CI_SKIP
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-make-migrators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: bot-make-migrators

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
make-migrators:
name: make-migrators
Expand Down Expand Up @@ -47,7 +50,6 @@ jobs:
env:
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && always() && ! env.CI_SKIP
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: prs

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
prs:
name: prs
Expand Down Expand Up @@ -54,7 +57,6 @@ jobs:
BOT_JOB: ${{ matrix.job_num }}
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && ! cancelled() && ! env.CI_SKIP
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/bot-pypi-mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
- cron: '42 * * * *'
workflow_dispatch: null

concurrency: bot-pypi-mapping

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
pypi-mapping:
name: pypi-mapping
runs-on: "ubuntu-latest"
concurrency: pypi-mapping
defaults:
run:
shell: bash -leo pipefail {0}
Expand Down Expand Up @@ -45,7 +49,6 @@ jobs:
conda-forge-tick make-import-to-package-mapping
env:
BOT_TOKEN: ${{ secrets.AUTOTICK_BOT_TOKEN }}
CF_TICK_CONTAINER_TAG: latest

- name: build pypi mapping
if: success() && ! env.CI_SKIP
Expand All @@ -55,7 +58,6 @@ jobs:
conda-forge-tick make-mappings
env:
BOT_TOKEN: ${{ secrets.AUTOTICK_BOT_TOKEN }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && ! cancelled() && ! env.CI_SKIP
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-update-status-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

concurrency: update-status-page

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
update_status_page:
name: update-status-page
Expand Down Expand Up @@ -43,7 +46,6 @@ jobs:
conda-forge-tick make-status-report
env:
BOT_TOKEN: ${{ secrets.AUTOTICK_BOT_TOKEN }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && ! cancelled() && ! env.CI_SKIP
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: versions

env:
CF_TICK_CONTAINER_TAG: latest

jobs:
versions:
name: versions
Expand Down Expand Up @@ -51,7 +54,6 @@ jobs:
BOT_JOB: ${{ matrix.job_num }}
CF_TICK_GRAPH_DATA_BACKENDS: "${{ vars.CF_TICK_GRAPH_DATA_BACKENDS }}"
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
CF_TICK_CONTAINER_TAG: latest

- name: deploy
if: github.ref == 'refs/heads/master' && ! cancelled() && ! env.CI_SKIP
Expand Down
4 changes: 3 additions & 1 deletion autotick-bot/install_bot_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ else
echo "Skipping cloning of cf-graph and pinning feedstock"
fi

docker pull ghcr.io/regro/conda-forge-tick:$(python -c "import conda_forge_tick; print(conda_forge_tick.__version__)")
bot_tag=$(python -c "import conda_forge_tick; print(conda_forge_tick.__version__)")
docker_tag=${CF_TICK_CONTAINER_TAG:-${bot_tag}}
docker pull ghcr.io/regro/conda-forge-tick:${docker_tag}

echo -e "\n\n============================================\n============================================"
conda info
Expand Down

0 comments on commit 2c70b3b

Please sign in to comment.