@@ -42,50 +42,66 @@ jobs:
42
42
fetch-depth : 0
43
43
fetch-tags : true
44
44
45
+ - name : Git describe (1)
46
+ run : |
47
+ git describe
48
+ git descibe --long
49
+
45
50
- uses : actions/setup-python@v5
46
51
with :
47
52
python-version-file : .github/workflows/.python-version
48
53
49
- - name : Create /static directory
50
- run : mkdir -p static
54
+ # - name: Create /static directory
55
+ # run: mkdir -p static
56
+
57
+ - name : Echo commit SHA
58
+ run : echo "${{ github.sha }}"
59
+
60
+ - name : Echo version
61
+ run : echo "${{ github.ref_name }}"
51
62
52
63
- name : Write python packages to file
53
64
run : |
54
65
python -m venv .venv
55
66
source .venv/bin/activate
56
- pip install pipdeptree
67
+ pip install pipdeptree setuptools_scm
57
68
pip install -e .
69
+ python -m setuptools_scm
58
70
pipdeptree
59
- pipdeptree >> static/requirements.txt
60
71
61
- - name : Write commit SHA to file
62
- run : echo "${{ github.sha }}" >> static/sha.txt
72
+ - name : Git describe (2)
73
+ run : |
74
+ git describe
75
+ git descibe --long
63
76
64
- - name : Write version to file
65
- run : echo "${{ github.ref_name }}" >> static/version .txt
77
+ # - name: Write commit SHA to file
78
+ # run: echo "${{ github.sha }}" >> static/sha .txt
66
79
67
- - name : Docker Login to GitHub Container Registry
68
- uses : docker/login-action@v3
69
- with :
70
- registry : ghcr.io
71
- username : ${{ github.actor }}
72
- password : ${{ secrets.GITHUB_TOKEN }}
80
+ # - name: Write version to file
81
+ # run: echo "${{ github.ref_name }}" >> static/version.txt
73
82
74
- - name : Set up Docker Buildx
75
- id : buildx
76
- uses : docker/setup-buildx-action@v3
83
+ # - name: Docker Login to GitHub Container Registry
84
+ # uses: docker/login-action@v3
85
+ # with:
86
+ # registry: ghcr.io
87
+ # username: ${{ github.actor }}
88
+ # password: ${{ secrets.GITHUB_TOKEN }}
77
89
78
- - name : Build, tag, and push image to GitHub Container Registry
79
- uses : docker/build-push-action@v5
80
- with :
81
- builder : ${{ steps.buildx.outputs.name }}
82
- build-args : GIT-SHA=${{ github.sha }}
83
- cache-from : type=gha,scope=cal-itp
84
- cache-to : type=gha,scope=cal-itp,mode=max
85
- context : .
86
- file : Dockerfile
87
- push : true
88
- tags : |
89
- ghcr.io/${{ github.repository }}:${{ github.ref_type != 'tag' && github.ref_name || contains(github.ref, '-rc') && 'test' || 'prod' }}
90
- ghcr.io/${{ github.repository }}:${{ github.ref_name }}
91
- ghcr.io/${{ github.repository }}:${{ github.sha }}
90
+ # - name: Set up Docker Buildx
91
+ # id: buildx
92
+ # uses: docker/setup-buildx-action@v3
93
+
94
+ # - name: Build, tag, and push image to GitHub Container Registry
95
+ # uses: docker/build-push-action@v5
96
+ # with:
97
+ # builder: ${{ steps.buildx.outputs.name }}
98
+ # build-args: GIT-SHA=${{ github.sha }}
99
+ # cache-from: type=gha,scope=cal-itp
100
+ # cache-to: type=gha,scope=cal-itp,mode=max
101
+ # context: .
102
+ # file: Dockerfile
103
+ # push: true
104
+ # tags: |
105
+ # ghcr.io/${{ github.repository }}:${{ github.ref_type != 'tag' && github.ref_name || contains(github.ref, '-rc') && 'test' || 'prod' }}
106
+ # ghcr.io/${{ github.repository }}:${{ github.ref_name }}
107
+ # ghcr.io/${{ github.repository }}:${{ github.sha }}
0 commit comments