push
Some checks failed
Build and Push Docker Images / build-rust-latest (push) Failing after 6s

This commit is contained in:
Philipp Hofer 2025-04-06 13:38:25 +02:00
parent 929ba2d61b
commit 8c0dbfb6c9

View File

@ -1,4 +1,3 @@
name: Build and Push Docker Images
on:
@ -11,8 +10,6 @@ on:
jobs:
build-rust-latest:
runs-on: ubuntu-latest
container: git.hofer.link/philipp/ci-images:rust-latest
#if: github.event_name == 'push' && contains(github.event.commits[0].modified, 'rust-latest/Dockerfile')
steps:
- name: Checkout code
uses: actions/checkout@v3
@ -20,13 +17,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Docker
run: |
apt-get update
apt-get install -y docker.io
systemctl start docker
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
@ -40,3 +30,19 @@ jobs:
context: ./rust-latest
push: true
tags: git.hofer.link/philipp/ci-images:rust-latest
cache-from: type=registry,ref=git.hofer.link/philipp/ci-images:rust-latest-cache
cache-to: type=registry,ref=git.hofer.link/philipp/ci-images:rust-latest-cache,mode=max
# You can add more jobs for other Docker images
# Example:
# build-another-image:
# runs-on: ubuntu-latest
# steps:
# # Similar steps as above
# - name: Build and push another-image
# uses: docker/build-push-action@v4
# with:
# context: ./another-image-dir
# push: true
# tags: git.hofer.link/philipp/ci-images:another-image