6 Commits

Author SHA1 Message Date
1967e5952a Merge ec5ddfc310 into a7ade2cbc4 2024-12-18 16:50:34 +00:00
ec5ddfc310 Adding rudimental image test 2024-12-18 14:07:25 +01:00
5b0c07e2d8 Fixing output steps 2024-12-18 14:07:18 +01:00
996eefa858 Load image to local docker store after build 2024-12-18 14:07:02 +01:00
aee6dc8d01 Do not upload images for pull request 2024-12-18 14:06:50 +01:00
758c4c813a Split image build and push 2024-12-18 14:06:34 +01:00
2 changed files with 22 additions and 6 deletions

View File

@ -62,8 +62,24 @@ jobs:
${{ env.FULL_VERSION }}
${{ env.MAJOR_VERSION }}
- name: Build and push Docker image
id: build-and-push
- name: Build and export Docker image to Docker
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
with:
context: .
@ -75,4 +91,4 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
env:
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 }}

View File

@ -1,5 +1,5 @@
# -------------- Build-time variables --------------
ARG NEXTCLOUD_VERSION=30.0.12
ARG NEXTCLOUD_VERSION=30.0.4
ARG PHP_VERSION=8.3
ARG NGINX_VERSION=1.26
@ -10,8 +10,8 @@ ARG SNUFFLEUPAGUS_VERSION=0.10.0
ARG UID=1000
ARG GID=1000
# nextcloud-30.0.12.tar.bz2
ARG SHA256_SUM="9e19b25f42273d4361218426b4762a766bee408cfa6aa8219f8c27f72095a7a8"
# nextcloud-30.0.4.tar.bz2
ARG SHA256_SUM="eb6aaba9acef442f2b3e4a996b7ee8a5ed24442f9bba681237fb28ed970e1fa5"
# Nextcloud Security <security@nextcloud.com> (D75899B9A724937A)
ARG GPG_FINGERPRINT="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A"