Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mwallschlaeger committed May 17, 2024
1 parent 8d26df1 commit 6c8916f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-and-push-dockerimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build and push bonares-handbook image

on:
push:
branches:
- "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 }}

0 comments on commit 6c8916f

Please sign in to comment.