Skip to content

Geoserver Data dir conf Docker Image (Build and Push) #1

Geoserver Data dir conf Docker Image (Build and Push)

Geoserver Data dir conf Docker Image (Build and Push) #1

name: Geoserver Data dir conf Docker Image (Build and Push)
on:
push:
branches: [ "master" ]
paths:
- "docker/geoserver_data_dir/**"
pull_request:
branches: [ "master" ]
paths:
- "docker/geoserver_data_dir/**"
release:
types: [published]
tags:
- geoserver_data_dir_*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up 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
uses: docker/build-push-action@v5
with:
file: ./docker/geoserver_data_dir/Dockerfile
context: "./docker/geoserver_data_dir/"
push: ${{github.event_name == 'push'}}
tags: giohappy/geoserver_data_dir:${{ github.ref }}