Reorder tasks to fix
This commit is contained in:
@@ -30,19 +30,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Get date for image label
|
- name: Get date for image label
|
||||||
id: date
|
id: date
|
||||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
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
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -65,6 +59,6 @@ jobs:
|
|||||||
cache-to: "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ vars.DOCKER_IMAGE }}:cache"
|
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"
|
cache-from: "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${{ vars.DOCKER_IMAGE }}:cache"
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.revision=${{ steps.gitinfo.outputs.sha }}
|
org.opencontainers.image.revision=${{ GITEA_SHA }}
|
||||||
org.opencontainers.image.commit_message=${{ steps.gitinfo.outputs.message }}
|
org.opencontainers.image.author=${{ github.event.pull_request.user.login }}
|
||||||
org.opencontainers.image.created=${{ steps.date.outputs.date }}
|
org.opencontainers.image.created=${{ steps.date.outputs.date }}
|
||||||
|
|||||||
Reference in New Issue
Block a user