Skip to content

Update build-hurl-image.yml #38

Update build-hurl-image.yml

Update build-hurl-image.yml #38

name: Publish frontend Docker image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build Docker image
run: docker build -t ghcr.io/${{ github.repository_owner }}/scope-frontend:latest ./frontend
- name: Push Docker image
run: docker push ghcr.io/${{ github.repository_owner }}/scope-frontend:latest