generated from uwhackweek/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.04 KB
/
PR.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: BuildAndTest
on:
pull_request:
branches:
- main
paths-ignore:
- 'LICENSE'
- 'README.md'
- '.gitignore'
env:
DOCKER_IMAGE: "uwgda/uwgda-image-2025"
jobs:
build-image-without-pushing:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
- name: Build Only
uses: jupyterhub/repo2docker-action@master
with:
NO_PUSH: 'true'
IMAGE_NAME: ${{ env.DOCKER_IMAGE }}
- name: Report Image Size and Conda Packages
run: |
docker images
docker run ${{ env.DOCKER_IMAGE }}:latest conda list --export
docker run ${{ env.DOCKER_IMAGE }}:latest conda list --explicit > conda-linux-64.lock
- name: Save package list
uses: actions/upload-artifact@v4
with:
name: lockfile
path: conda-linux-64.lock
- name: Commit lockfile
uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
message: "add conda-lock package list"
add: conda-linux-64.lock