Skip to content

Commit 21f85d5

Browse files
committed
chore(deploy): temporarily deactivate build, more debug info
1 parent df7f63d commit 21f85d5

File tree

1 file changed

+47
-31
lines changed

1 file changed

+47
-31
lines changed

.github/workflows/docker-publish.yml

+47-31
Original file line numberDiff line numberDiff line change
@@ -42,50 +42,66 @@ jobs:
4242
fetch-depth: 0
4343
fetch-tags: true
4444

45+
- name: Git describe (1)
46+
run: |
47+
git describe
48+
git descibe --long
49+
4550
- uses: actions/setup-python@v5
4651
with:
4752
python-version-file: .github/workflows/.python-version
4853

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 }}"
5162

5263
- name: Write python packages to file
5364
run: |
5465
python -m venv .venv
5566
source .venv/bin/activate
56-
pip install pipdeptree
67+
pip install pipdeptree setuptools_scm
5768
pip install -e .
69+
python -m setuptools_scm
5870
pipdeptree
59-
pipdeptree >> static/requirements.txt
6071
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
6376
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
6679

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
7382

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 }}
7789

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

Comments
 (0)