Update main.yml

This commit is contained in:
Nicholas Orlowsky 2023-01-02 14:47:02 -06:00 committed by GitHub
parent 8e66c60a79
commit 504db35fff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,18 +43,23 @@ jobs:
with: with:
python-version: 3.12.0-alpha.3 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 - name: Build and push Docker image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: |
${{ steps.meta.outputs.tags }}
${{ steps.vnum.formatted_version }}
labels: ${{ steps.meta.outputs.labels }} 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 }}