Skip to content

Commit

Permalink
Update docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Jan 22, 2024
1 parent 97c75de commit 8749751
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 801 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/52n-build-4.2.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "[52n-4.2.x -> 4.2.x] Builds GeoNode Docker Images"

concurrency:
group: "geonode_build_master"
cancel-in-progress: true

env:
TITLE: "52°North GeoNode Docker Image"
VENDOR: "52°North GmbH"
AUTHORS: "https://52North.org/"
DESCRIPTION: "Builds and publishes the Docker images GeoNode, GeoServer, Nginx"
LICENSE: "GPL-3.0"
TAG: 4.2.x

on:
push:
branches:
- "52n-4.2.x"

jobs:
build_and_push_geonode:
runs-on: ubuntu-22.04
env:
IMAGE: 52north/geonode
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE }}
labels: |
"org.opencontainers.image.authors=${{ env.AUTHORS }}"
"org.opencontainers.image.vendor=${{ env.VENDOR }}"
"org.opencontainers.image.description=${{ env.DESCRIPTION }}"
"org.opencontainers.image.title=${{ env.TITLE }}"
"org.opencontainers.image.licenses=${{ env.LICENSE }}"
tags: |
latest
${{ env.TAG }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN_52N_MASTER }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max
133 changes: 0 additions & 133 deletions .github/workflows/52n-build-master.yml

This file was deleted.

113 changes: 0 additions & 113 deletions scripts/docker/geoserver/Dockerfile

This file was deleted.

Loading

0 comments on commit 8749751

Please sign in to comment.