-
Notifications
You must be signed in to change notification settings - Fork 29
61 lines (54 loc) · 1.55 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build & publish tW images
on:
push:
branches:
- "master"
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- tag: 2.26.0-jms # 2.22.1
gs-version: 2.26.0
label: 2.26.0-jms
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: linux/arm64/v8
- 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: thinkwhere/geoserver
tags: ${{ matrix.tag }}
- name: Download build files
run: |
cd build
chmod +x ./download.sh
sudo ./download.sh "${{ matrix.gs-version }}"
- name: Build and push application-base
uses: docker/build-push-action@v4
with:
context: ./build
file: ./build/Dockerfile
build-args: |
GS_VERSION=${{ matrix.gs-version }}
push: true
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/arm64/v8
labels: ${{ steps.meta.outputs.labels }}