Skip to content

Commit

Permalink
release: Set calver
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Sep 24, 2024
1 parent f0988f8 commit 4ebfa76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checkout push-to-registry action github repository
- name: Set Calver Date
run: |
echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
id: version
- name: Checkout Push to Registry action
uses: actions/checkout@v4
- name: Set up QEMU
Expand All @@ -28,12 +32,12 @@ jobs:
with:
registry: ghcr.io
username: python
password: ${{secrets.GHCR_TOKEN}}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./${{ inputs.package }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/python/${{ inputs.package }}:latest
ghcr.io/python/${{ inputs.package }}:${{ steps.version.outputs.builddate }}.${{ github.run_id }}

0 comments on commit 4ebfa76

Please sign in to comment.