Skip to content

Merge pull request #1 from slackspace-io/rust #54

Merge pull request #1 from slackspace-io/rust

Merge pull request #1 from slackspace-io/rust #54

Workflow file for this run

name: Build and Push Frontend Docker Image
on:
push:
branches:
- main
- rust
paths:
- 'frontend/**'
- '.github/workflows/frontend.yml'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: ghcr.io/slackspace-io/slackwatch-fe:latest,ghcr.io/slackspace-io/slackwatch-fe:dev,ghcr.io/slackspace-io/slackwatch-fe:${{ github.sha }}