Files
debian-moustache/.gitea/workflows/docker.yml
T
2025-01-03 21:15:33 +01:00

55 lines
1.6 KiB
YAML

---
name: docker
on:
push:
branches:
- "main"
jobs:
docker:
#runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
#image: debian:stable-slim
steps:
# - name: install prerequisites
# run: |
# apt update
# apt install -yq nodejs git curl
#
# - name: manually install docker-ce-cli
# run: |
# install -m 0755 -d /etc/apt/keyrings
# curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
# chmod a+r /etc/apt/keyrings/docker.asc
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# apt update
# apt install -yq docker-ce-cli
- uses: actions/checkout@v4
# with:
# repository: 'docker-ci/debian-php8.3.git'
# ref: 'main'
# token: ${{ secrets.DOCKER_API_TOKEN }}
# #fetch-depth: 0
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: git.bbee.fr
username: ${{ vars.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
push: true
tags: git.bbee.fr/${{ github.repository }}:latest