Skip to content

Commit ae84bcd

Browse files
committed
week3-12
1 parent 4edf4f9 commit ae84bcd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ jobs:
5555
username: ${{ github.actor }}
5656
password: ${{ secrets.GITHUB_TOKEN }}
5757

58-
- name: Lowercase repository owner
58+
- name: Lowercase repository owner and generate tag
5959
id: prep
6060
run: |
6161
echo "OWNER_LOWERCASE=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_OUTPUT
62-
echo "IMAGE_TAG=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
62+
# Format: <branch-name>_<short-sha>, lowercased
63+
RAW_TAG="${{ github.ref_name }}_${GITHUB_SHA::7}"
64+
echo "IMAGE_TAG=$(echo $RAW_TAG | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
6365
6466
- name: Build and Push
6567
uses: docker/build-push-action@v6

Learn/week4/post-pydantic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
In Week 3, you only used **GET** requests. Let's understand why we need other methods.
1616

17-
#### GET Requests (What You've Been Using)
17+
#### GET Requests (What You've Been Using)
1818

1919
```python
2020
@app.get("/users")

0 commit comments

Comments
 (0)