diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4a545c..cfb287c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,18 +43,23 @@ jobs: with: python-version: 3.12.0-alpha.3 + + - uses: paulhatch/semantic-version@v5.0.2 + id: vnum + with: + # The prefix to use to identify tags + tag_prefix: "v" + major_pattern: "(MAJOR)" + minor_pattern: "(MINOR)" + version_format: "${major}.${minor}.${patch}-prerelease${increment}" + bump_each_commit: true + - name: Build and push Docker image uses: docker/build-push-action@v2 with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} + tags: | + ${{ steps.meta.outputs.tags }} + ${{ steps.vnum.formatted_version }} labels: ${{ steps.meta.outputs.labels }} - - - name: NWS Pull New Image - uses: nickorlow/nws-pull-new-image@v0.9.2 - with: - # Your NWS Deploy Key - deploy-key: ${{ secrets.NWS_DEPLOY_KEY }} - # The application id to get a new image for - application-id: ${{ secrets.NWS_APPLICATION_ID }}