Skip to content

Add links and move button #100

Add links and move button

Add links and move button #100

Workflow file for this run

name: Docker Image CI
# Build all branches and PRs
# Push only in main (:latest) and tags (:vX.Y.Z)
on:
push:
branches:
- "*"
tags:
- "v*"
pull_request:
branches:
- github.event.repository.default_branch
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/fenice2
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
- name: Login to DockerHub
if: github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/[email protected]
with:
push: ${{ github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}