forked from geoflow3d/geoflow-bundle
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (42 loc) · 1.08 KB
/
build-docker-builder.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
name: build builder image
on:
workflow_dispatch:
inputs:
name:
description: "For what reason ?"
default: "Testing"
workflow_run:
workflows: [build base image]
types:
- completed
env:
IMAGE_NAME: geoflow-bundle-builder
USER_NAME: ignfab
VERSION: latest
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
# Clone project and recursively get submodules
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Login to the dockerhub registry
uses: docker/#-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./
file: ./builder.dockerfile
build-args: |
JOBS=2
VERSION=${{ env.VERSION }}
push: true
tags: ${{ env.USER_NAME }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}