Skip to content

Commit c793948

Browse files
authored
Use ditto 1.0.4 (#342) and update deps
* feat: use new ditto * chore: update deps
1 parent e6777b8 commit c793948

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ version: 2.1
33
executors:
44
python3:
55
docker:
6-
- image: cimg/python:3.12.3
6+
- image: cimg/python:3.14.3
77

88
commands:
99
ditto-transform:
1010
description: Run Ditto in order to transform the BASE_URL instead of http://localhost
1111
steps:
1212
- run:
1313
name: Install Ditto
14-
command: pip install --user 'pokeapi-ditto==1.0.3'
14+
command: pip install --user 'pokeapi-ditto==1.0.4'
1515
- run:
1616
name: Transform api-data's JSON files to have the correct BASE_URL instead of http://localhost
1717
command: bash -x scripts/transform.sh

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v6
1313
- name: Run and test
1414
run: (cd updater && bash cmd.bash)
1515
env:
@@ -25,17 +25,17 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
- name: Docker meta
3030
id: meta
31-
uses: docker/metadata-action@v5
31+
uses: docker/metadata-action@v6
3232
with:
3333
images: pokeapi/updater
3434
- name: Set up QEMU
35-
uses: docker/setup-qemu-action@v3
35+
uses: docker/setup-qemu-action@v4
3636
- name: Set up Docker Buildx
3737
id: buildx
38-
uses: docker/setup-buildx-action@v3
38+
uses: docker/setup-buildx-action@v4
3939
- name: Inspect builder
4040
run: |
4141
echo "Name: ${{ steps.buildx.outputs.name }}"
@@ -45,7 +45,7 @@ jobs:
4545
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
4646
- name: Build
4747
id: docker_build
48-
uses: docker/build-push-action@v5
48+
uses: docker/build-push-action@v7
4949
with:
5050
context: ./updater
5151
load: true

.github/workflows/update-gql-v1beta-data.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,33 @@ on:
66
# - master
77
jobs:
88
update-gql-v1beta-data:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
concurrency:
1111
group: serial
1212
cancel-in-progress: false
1313
permissions:
1414
contents: 'read'
1515
id-token: 'write'
1616
steps:
17-
- uses: 'actions/checkout@v4'
18-
- uses: 'google-github-actions/auth@v2'
17+
- uses: actions/checkout@v6
18+
- uses: google-github-actions/auth@v3
1919
with:
2020
project_id: 'pokeapi-215911'
2121
workload_identity_provider: 'projects/569595515170/locations/global/workloadIdentityPools/github/providers/deploy'
22-
- name: 'Set up Cloud SDK'
23-
uses: 'google-github-actions/setup-gcloud@v2'
22+
- name: Set up Cloud SDK
23+
uses: google-github-actions/setup-gcloud@v3
2424
with:
2525
version: '>= 390.0.0'
26-
- name: 'Make snapshot'
26+
- name: Make snapshot
2727
run: |
2828
gcloud compute snapshots create gql-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT} \
2929
--labels=trigger=gql-data-update,next-head-ref=${GITHUB_SHA} \
3030
--snapshot-type=ARCHIVE \
3131
--source-disk=graphql5 \
3232
--source-disk-zone=us-east1-b \
3333
--storage-location=us-east1
34-
- name: 'Update data'
35-
uses: 'google-github-actions/ssh-compute@v1'
34+
- name: Update data
35+
uses: google-github-actions/ssh-compute@v2
3636
with:
3737
instance_name: 'graphql5'
3838
zone: 'us-east1-b'

.github/workflows/update-gql-v1beta2-data.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ on:
66
- master
77
jobs:
88
update-gql-v1beta2-data:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
concurrency:
1111
group: serial
1212
cancel-in-progress: false
1313
permissions:
1414
contents: 'read'
1515
id-token: 'write'
1616
steps:
17-
- uses: 'actions/checkout@v4'
18-
17+
- uses: 'actions/checkout@v6'
18+
1919
- name: 'Update data'
2020
run: |-
2121
echo "$GCP_STAGING_GRAPHQL1_VM_SSH_PRIVATE_KEY" > pk.key

updater/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker:24.0.7-dind-alpine3.18
1+
FROM docker:29.3.0-dind-alpine3.23
22

33
RUN apk update
44
RUN apk add curl python3 git bash build-base python3-dev py3-pip

updater/cmd.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ git branch "$BRANCH_NAME"
3535
git checkout "$BRANCH_NAME"
3636
python -m venv .venv
3737
source .venv/bin/activate
38-
pip install 'pokeapi-ditto==1.0.3'
38+
pip install 'pokeapi-ditto==1.0.4'
3939
rm -rf ./data
4040
ditto clone --src-url http://localhost/ --dest-dir ./data
4141
# (╯°□°)╯ *always* assume magikarp failed and grab it again #clowntown

0 commit comments

Comments
 (0)