Skip to content

Commit

Permalink
ci: Added support for building images on tag on main branch. Renamed …
Browse files Browse the repository at this point in the history
…action.
  • Loading branch information
efiege committed Aug 26, 2022
1 parent f8c5fbc commit b848998
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
name: Docker
name: Build and Release Image


on:
pull_request:
push:
branches:
- main
- develop
types: [ closed ]
tags:
- "*.*.*"


env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: edc-ui
IMAGE_NAME: edc-data-dashboard
IMAGE_NAME_BASE: ${{ github.repository_owner }}


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -38,13 +41,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BASE }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
type=sha
type=semver,pattern={{version}},enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build EDC-UI image
Expand Down

0 comments on commit b848998

Please sign in to comment.