mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-19 20:19:24 +00:00
Merge ec5ddfc310ec4d144bcc7c116f0f6a93dfa33219 into a7ade2cbc4c2ccd9219478569caee60f69a1fed4
This commit is contained in:
commit
1967e5952a
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@ -62,8 +62,24 @@ jobs:
|
|||||||
${{ env.FULL_VERSION }}
|
${{ env.FULL_VERSION }}
|
||||||
${{ env.MAJOR_VERSION }}
|
${{ env.MAJOR_VERSION }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and export Docker image to Docker
|
||||||
id: build-and-push
|
id: build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
load: true
|
||||||
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
|
||||||
|
context: .
|
||||||
|
|
||||||
|
- name: Test Docker image
|
||||||
|
id: test-image
|
||||||
|
run: |
|
||||||
|
docker run -d -p 8888:8888 --name nextcloud --rm ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test && \
|
||||||
|
docker exec nextcloud occ status && \
|
||||||
|
nc -z localhost 8888
|
||||||
|
|
||||||
|
- name: Push Docker image
|
||||||
|
id: push
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
@ -75,4 +91,4 @@ jobs:
|
|||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
env:
|
env:
|
||||||
COSIGN_EXPERIMENTAL: "true"
|
COSIGN_EXPERIMENTAL: "true"
|
||||||
run: cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}
|
run: cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.push.outputs.digest }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user