Skip to content

feat: sftp-server - installing uuid-runtime debian package #3

feat: sftp-server - installing uuid-runtime debian package

feat: sftp-server - installing uuid-runtime debian package #3

name: Docker build sftp-server image
on:
workflow_dispatch:
# rebuild with latest debian stable version each month
schedule:
- cron: "0 0 1 * *"
push:
branches: [ "master" ]
paths:
- '.github/workflows/docker-build-sftp-server.yml'
- 'sftp-server/**'
env:
# docker image version
VERSION: "1.0.0-bookworm"
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: ./sftp-server
file: ./sftp-server/Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/camptocamp/georchestra-docker-images/sftp-server:latest, ghcr.io/camptocamp/georchestra-docker-images/sftp-server:${{ env.VERSION }}, ghcr.io/camptocamp/georchestra-docker-images/sftp-server:build-${{ github.sha }}