Skip to content

Commit

Permalink
Add workflow for releasing frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Nov 5, 2024
1 parent fd09fa2 commit d7c4f5e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/frontend-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Make release of the frontend

on:
push:
tags:
- frontend/*

jobs:
publish-docker-image:
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
concordium/ccdscan-frontend
tags: |
type=match,pattern=frontend/(.*)
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./frontend
file: ./frontend/Dockerfile
push: false
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit d7c4f5e

Please sign in to comment.