Skip to content

Commit 2481568

Browse files
committed
chore(deploy): temporarily deactivate build, more debug info
1 parent 4423bd3 commit 2481568

File tree

1 file changed

+45
-31
lines changed

1 file changed

+45
-31
lines changed

.github/workflows/docker-publish.yml

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

45-
- name: Git describe
45+
- name: Git describe (1)
4646
run: |
4747
git describe
4848
git descibe --long
@@ -51,8 +51,14 @@ jobs:
5151
with:
5252
python-version-file: .github/workflows/.python-version
5353

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

5763
- name: Write python packages to file
5864
run: |
@@ -61,38 +67,46 @@ jobs:
6167
pip install pipdeptree
6268
pip install -e .
6369
pipdeptree
64-
pipdeptree >> static/requirements.txt
6570
deactivate
6671
rm -rf .venv
6772
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 }}"
7082

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

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

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
8498

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

Comments
 (0)