feat(docker-ci): enhance Docker CI/CD workflow
Some checks failed
Docker CI/CD / Docker Build and Push (push) Failing after 9m10s

Updated the Docker CI/CD pipeline in the `.forgejo/workflows/docker-latest.yml` to support better integration and efficiency. Key enhancements include setting a container environment with Node 20 on Debian Bookworm for consistency across builds, and installing Docker directly within the runner to streamline the process. This refinement simplifies the setup steps, reduces potential for errors, and possibly decreases pipeline execution time. These changes ensure that our Docker images are built and pushed in a more reliable and faster environment.
This commit is contained in:
Kumi 2024-04-23 09:26:15 +02:00
parent d23cfa35fa
commit a3b4cf217c
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -3,26 +3,29 @@ name: Docker CI/CD
on:
push:
branches:
- 'docker'
- "docker"
jobs:
docker:
name: Docker Build and Push
container:
image: node:20-bookworm
steps:
-
name: Set up QEMU
- name: Install Docker
run: |
apt update
apt install -y docker.io
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: kumitterer/matrix-gptbot:latest
tags: kumitterer/matrix-gptbot:latest