Skip to content

build(deps): bump braces from 3.0.2 to 3.0.3 (#248) #60

build(deps): bump braces from 3.0.2 to 3.0.3 (#248)

build(deps): bump braces from 3.0.2 to 3.0.3 (#248) #60

Workflow file for this run

name: Build and Push
on:
push:
branches:
- master
jobs:
build_and_push:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'chore(release):')
permissions:
contents: read
packages: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Get version from package.json
id: package_version
run: echo "PACKAGE_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
run: |-
docker build \
--tag "digichanges/nexp-api:${{ env.PACKAGE_VERSION }}" \
--tag "digichanges/nexp-api:latest" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.
- name: Publish
run: docker push "digichanges/nexp-api" --all-tags