Skip to content

Commit

Permalink
cicd: --priv
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Dec 4, 2023
1 parent f791190 commit 492ceb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Run and test
run: docker run -v /var/run/docker.sock:/var/run/docker.sock -e 'COMMIT_AND_PUSH=false' -e "REPO_APIDATA_CHECKOUT_OBJECT=${{ github.sha }}" -e 'REPO_POKEAPI=https://github.com/PokeAPI/pokeapi.git' -e 'REPO_DATA=https://github.com/PokeAPI/api-data.git' --rm ${{ steps.meta.outputs.tags }}
run: docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock -e 'COMMIT_AND_PUSH=false' -e "REPO_APIDATA_CHECKOUT_OBJECT=${{ github.sha }}" -e 'REPO_POKEAPI=https://github.com/PokeAPI/pokeapi.git' -e 'REPO_DATA=https://github.com/PokeAPI/api-data.git' --rm ${{ steps.meta.outputs.tags }}
- name: Image digest and tag
run: |
echo ${{ steps.docker_build.outputs.digest }}
Expand Down
3 changes: 1 addition & 2 deletions updater/cmd.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ cd pokeapi
git checkout "$REPO_POKEAPI_CHECKOUT_OBJECT"
git submodule init
git submodule update --remote
pwd
docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d

docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d
docker compose exec -T app python manage.py migrate --settings=config.docker-compose
docker compose exec -T app sh -c 'echo "from data.v2.build import build_all; build_all()" | python manage.py shell --settings=config.docker-compose'

Expand Down

0 comments on commit 492ceb7

Please sign in to comment.