Compare commits

...

2 Commits

Author SHA1 Message Date
0ae990e6c0
Reenable workflow caching
All checks were successful
Docker Image CI / build (push) Successful in 1m46s
2024-07-10 19:10:30 +01:00
f39f48b882
Update workflow actions 2024-07-10 19:08:32 +01:00

View File

@ -12,32 +12,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
if: gitea.event_name != 'pull_request'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: git.jamsch0.dev
username: ${{gitea.actor}}
password: ${{secrets.CI_TOKEN}}
- name: Extract metadata
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
id: meta
with:
images: git.jamsch0.dev/jamsch0/groceries
tags: type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
# cache-from: type=gha
# cache-to: type=gha,mode=max
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{gitea.event_name != 'pull_request'}}
tags: ${{steps.meta.outputs.tags}}
labels: ${{steps.meta.outputs.labels}}