Skip to content

audit fix

audit fix #33

Workflow file for this run

name: ghcr push
on:
push:
branches: ['next']
paths-ignore: ['**/*.md', '**/*.yml']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
push: true
tags: |
ghcr.io/sipcapture/pastash:latest
ghcr.io/sipcapture/pastash:${{ steps.package-version.outputs.current-version}}