-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee5e388
commit 5cc9150
Showing
3 changed files
with
11 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,13 +28,21 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build and push Docker image (latest tag) | ||
- name: Extract version from project.toml | ||
id: extract_version | ||
run: | | ||
VERSION=$(grep '^version' project.toml | sed -E 's/version *= *"([0-9.]+)"/\1/') | ||
echo "version=$VERSION" >> $GITHUB_ENV | ||
- name: Build and push Docker image (latest and version tags) | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: Dockerfile | ||
push: true | ||
tags: ghcr.io/${{ github.repository }}:latest | ||
tags: | | ||
ghcr.io/${{ github.repository }}:latest | ||
ghcr.io/${{ github.repository }}:${{ env.version }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} | ||
cache-from: type=gha | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.