Skip to content

feat: versioning

feat: versioning #8

name: Build, Push, and Release
on:
push:
branches:
- ft/versioning
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./Website/ui
file: ./Website/ui/Dockerfile
platforms: linux/amd64
push: true
tags: enaccess/mpm-frontend:latest
release:
needs: build-and-push
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run semantic-release
env:

Check failure on line 51 in .github/workflows/build-push-fe-docker-hub.yaml

View workflow run for this annotation

GitHub Actions / Build, Push, and Release

Invalid workflow file

The workflow is not valid. .github/workflows/build-push-fe-docker-hub.yaml (Line: 51, Col: 11): Unexpected value ''
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release