Resolve upstream Actions explicitly and check out the exact event revision
Build and Push Container / docker (pull_request) Successful in 10m14s
Build and Push Container / docker (pull_request) Successful in 10m14s
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
|||||||
runs-on: butler-ci
|
runs-on: butler-ci
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Select relevant delivery work
|
- name: Select relevant delivery work
|
||||||
id: delivery
|
id: delivery
|
||||||
@@ -39,15 +39,15 @@ jobs:
|
|||||||
bash scripts/ci-select.sh
|
bash scripts/ci-select.sh
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: ${{ steps.delivery.outputs.run == 'true' }}
|
if: ${{ steps.delivery.outputs.run == 'true' }}
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: https://github.com/docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: ${{ steps.delivery.outputs.run == 'true' }}
|
if: ${{ steps.delivery.outputs.run == 'true' }}
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to Gitea registry
|
- name: Log in to Gitea registry
|
||||||
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
|
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
|
||||||
uses: docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
if: ${{ steps.delivery.outputs.run == 'true' }}
|
if: ${{ steps.delivery.outputs.run == 'true' }}
|
||||||
uses: docker/build-push-action@v6
|
uses: https://github.com/docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user