Update workflow actions

This commit is contained in:
James Chapman 2024-07-10 19:08:32 +01:00
parent db0dd88386
commit f39f48b882
Signed by: jamsch0
GPG Key ID: 765FE58130277547

View File

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