Skip to content

Merge pull request #11 from zalf-rdm/fixing_gitIssue_7 #5

Merge pull request #11 from zalf-rdm/fixing_gitIssue_7

Merge pull request #11 from zalf-rdm/fixing_gitIssue_7 #5

name: build and push bonares-handbook image
on:
push:
branch:
- "retype"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
zalf/bonares-handbook
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
file: docker/Dockerfile
tags: ${{ steps.meta.outputs.tags }}