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