-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.36 KB
/
docker-build-sftp-apache-nas.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
name: Docker build apache nas image
on:
workflow_dispatch:
# rebuild with latest php version each month
schedule:
- cron: "0 0 1 * *"
push:
branches: [ "master" ]
paths:
- '.github/workflows/docker-build-apache-nas.yml'
- 'apache-nas/**'
env:
# https://endoflife.date/php
PHP_VERSION: "8.3"
# docker image version
VERSION: "1.0.0-${{ env.PHP_VERSION }}"
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
- name: Build and push docker image
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./apache-nas
file: ./apache-nas/Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/camptocamp/georchestra-docker-images/apache-nas:latest, ghcr.io/camptocamp/georchestra-docker-images/apache-nas:${{ env.VERSION }}, ghcr.io/camptocamp/georchestra-docker-images/apache-nas:build-${{ github.sha }}
build-args: PHP_VERSION=${{ env.PHP_VERSION }}