Reorder tasks to fix
All checks were successful
Build Docker image / test (push) Successful in 31s
Build Docker image / build (push) Successful in 23s

This commit is contained in:
Roman Krček
2024-10-06 14:46:22 +02:00
parent 6cfc6a565c
commit a826c20e07

View File

@@ -30,19 +30,13 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: https://github.com/actions/checkout@v4
- name: Get date for image label
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Get commit information
id: gitinfo
run: |
echo "::set-output name=sha::$(git log -1 --format="%H")"
echo "::set-output name=message::$(git log -1 --format="%s")"
- name: Checkout code
uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
@@ -65,6 +59,6 @@ jobs:
cache-to: "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ vars.DOCKER_IMAGE }}:cache"
cache-from: "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ vars.DOCKER_IMAGE }}:cache"
labels: |
org.opencontainers.image.revision=${{ steps.gitinfo.outputs.sha }}
org.opencontainers.image.commit_message=${{ steps.gitinfo.outputs.message }}
org.opencontainers.image.revision=${{ GITEA_SHA }}
org.opencontainers.image.author=${{ github.event.pull_request.user.login }}
org.opencontainers.image.created=${{ steps.date.outputs.date }}