Skip to content

Commit

Permalink
add docker-build github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cioddi committed May 28, 2024
1 parent c1169ae commit 911d966
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflow/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and push release Docker image

#on:
# push:
# tags:
# - "v*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
#push: true
tags: |
mapbender/mapbender:latest
mapbender/mapbender:${{ github.ref_name }}

0 comments on commit 911d966

Please sign in to comment.