Skip to content

Commit

Permalink
Use c2csiutils - Publish to GitHubcContainer Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 4, 2020
1 parent 33ad1e8 commit 5e7eeaf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
10 changes: 8 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
version: 2
updates:
- package-ecosystem: pip
directory: '/'
directory: /
schedule:
interval: daily
time: '02:00'
time: 02:00
open-pull-requests-limit: 99
allow:
- dependency-type: direct
ignore:
- dependency-name: none
versions:
- '>= 0'
- package-ecosystem: pip
directory: /ci
schedule:
interval: daily
time: 02:00
open-pull-requests-limit: 99
33 changes: 16 additions & 17 deletions .github/workflows/ci.yaml → .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,30 @@ jobs:
name: Continuous integration
timeout-minutes: 10

env:
PATH: /bin:/usr/bin:/usr/local/bin:/home/runner/.local/bin
SUMMON_PROVIDER: /usr/local/bin/gopass

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
patterns: pypi
if: github.repository == 'camptocamp/tilecloud'

- run: |
sudo rm /etc/apt/sources.list.d/*.list
sudo apt update
sudo apt install --yes python3-wheel python3-setuptools
sudo apt install --yes python3-wheel
- run: sudo python3 -m pip install --requirement=ci/requirements.txt

- name: Checks
run: c2cciutils-checks

- run: python3 -m pip install --requirement=requirements-dev.txt

- run: docker-compose up --exit-code-from test
- run: git --no-pager diff --check HEAD~100

- uses: camptocamp/initialise-gopass-summon-action@v1
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
if: github.repository == 'camptocamp/tilecloud'
- run: |
summon --yaml '
USERNAME: !var gs/ci/pypi/username
PASSWORD: !var gs/ci/pypi/password
' ci/publish-pypi
- name: Publish
run: c2cciutils-publish
if: github.repository == 'camptocamp/tilecloud'
1 change: 1 addition & 0 deletions ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c2cciutils==1.0.dev20201202131358

0 comments on commit 5e7eeaf

Please sign in to comment.