44 lines
1014 B
YAML
44 lines
1014 B
YAML
---
|
|
name: docker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
jobs:
|
|
docker:
|
|
#runs-on: ubuntu-latest
|
|
container:
|
|
image: debian:stable-slim
|
|
steps:
|
|
- name: manually install nodeJS
|
|
run: |
|
|
apt update
|
|
apt install -y nodejs
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
repository: 'https://git.bbee.fr/docker-ci/debian-php8.3.git'
|
|
fetch-depth: 0
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: git.bbee.fr
|
|
username: ${{ var.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_API_TOKEN }}
|
|
|
|
- uses: docker/build-push-action@v6
|
|
env:
|
|
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
push: true
|
|
tags: git.bbee.fr/${{ github.repository }}:latest
|