Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push image to ghcr and update dependencies #108

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/statistician-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
packages: write # This is required for pushing to ghcr

jobs:
test:
Expand Down Expand Up @@ -97,16 +98,18 @@ jobs:
&& (needs.set_tags.outputs.image_tag)
needs: [test, set_tags]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Push image to dockerhub
- name: Push image to ghcr
uses: whoan/docker-build-with-cache-action@master
with:
context: ./docker
username: gadockersvc
password: ${{ secrets.GADOCKERSVC_PASSWORD }}
image_name: ${{ env.IMAGE_NAME }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image_name: ${{ github.repository }}
image_tag: latest,${{ needs.set_tags.outputs.image_tag }}
build_extra_args: '{"--build-arg": "UPDATE_VERSION=${{ needs.set_tags.outputs.image_tag }}"}'
2 changes: 1 addition & 1 deletion docker/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ dependencies:
- urlpath
- Werkzeug
- wrapt
- xarray>=2023.1.0
- xarray>=2023.7.0
- yarl
- zict
- zipp
Expand Down
6 changes: 3 additions & 3 deletions docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

--extra-index-url https://packages.dea.ga.gov.au/
datacube[performance,s3]>=1.8.11
datacube[performance,s3]>=1.8.17
hdstats==0.1.8.post1
odc-algo @ git+https://github.com/opendatacube/odc-algo@b8dcfce
odc-algo @ git+https://github.com/opendatacube/odc-algo@851e782
odc-apps-cloud==0.2.2
# For testing
odc-apps-dc-tools==0.2.12
odc-cloud==0.2.3
odc-dscache==0.2.2
odc-stac==0.3.6
odc-stac==0.3.8

# odc-stac is in PyPI
odc-stats[ows]
Loading