Skip to content

Commit

Permalink
build the container in release
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Feb 18, 2025
1 parent b47ff55 commit 8fb7c48
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@ jobs:
echo "Generated Tag: ${{ steps.tag_version.outputs.new_tag }}" # Reference the new_tag output from the tag_version step
echo "Github actor: ${{ github.actor }}"
echo "GENERATED TAG: ${{ env.NEW_TAG }}"
echo "GENERATED TAG: $NEW_TAG"
#- name: Login to GitHub Container Registry
# run: |
# podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}

#- name: Output the generated tag
# run: |
# echo "Generated Tag: ${{ steps.tag_version.outputs.new_tag }}" # Reference the new_tag output from the tag_version step
- name: Login to GitHub Container Registry
run: |
podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
run: |
ls -all
pwd
podman build \
--tag ghcr.io/${{ github.repository }}:${{ env.NEW_TAG }} \
-f docker/Dockerfile \
.
- name: Push container image
run: |
podman push ghcr.io/${{ github.repository }}:${{ env.NEW_TAG }}

0 comments on commit 8fb7c48

Please sign in to comment.