Testing Proper Release Workflow #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Site Release | |
on: | |
push: | |
tags: | |
- 'v*' # Triggers on version tags like v1.0, v2.1, etc. | |
release: | |
types: [published] | |
jobs: | |
release-build: | |
name: Release Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Build Docker Image | |
run: docker build -t ${{ secrets.REGISTRY_HOST }}/srinath-tech:latest . | |
- name: Push Docker Image | |
run: | | |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
docker push ${{ secrets.REGISTRY_HOST }}/srinath-tech:latest |