diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 3ec1f27..dc5e8b2 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -19,14 +19,29 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Daily build - uses: VaultVulp/gp-docker-action@1.6.0 + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to ghcr.io + uses: docker/login-action@v3 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - image-name: nextcloud - extract-git-tag: false - additional-image-tags: ${{ env.IMAGE_MAJOR_VERSION }} ${{ env.NEXTCLOUD_UPSTREAM_VERSION }} - custom-args: --platform=linux/arm64,linux/amd64 --build-arg="NEXTCLOUD_UPSTREAM_VERSION=${{ env.NEXTCLOUD_UPSTREAM_VERSION }}" - + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - uses: docker/build-push-action@v5 + name: Daily build + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + build-args: NEXTCLOUD_UPSTREAM_VERSION=${{ env.NEXTCLOUD_UPSTREAM_VERSION }} + tags: | + ghcr.io/0ranki/nextcloud-previews/nextcloud:${{ env.NEXTCLOUD_UPSTREAM_VERSION }} + ghcr.io/0ranki/nextcloud-previews/nextcloud:${{ env.IMAGE_MAJOR_VERSION }} + ghcr.io/0ranki/nextcloud-previews/nextcloud:latest + ghcr.io/0ranki/nextcloud-previews:${{ env.NEXTCLOUD_UPSTREAM_VERSION }} + ghcr.io/0ranki/nextcloud-previews:${{ env.IMAGE_MAJOR_VERSION }} + ghcr.io/0ranki/nextcloud-previews:latest diff --git a/Dockerfile b/Dockerfile index 4352184..cd9b98a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -ARG NEXTCLOUD_UPSTREAM_VERSION=27.1.3 + +ARG NEXTCLOUD_UPSTREAM_VERSION FROM docker.io/library/nextcloud:${NEXTCLOUD_UPSTREAM_VERSION} RUN apt-get update && \ diff --git a/examples/nextcloud-podman.yaml b/examples/nextcloud-podman.yaml index 10e717b..e7c0c9c 100644 --- a/examples/nextcloud-podman.yaml +++ b/examples/nextcloud-podman.yaml @@ -111,7 +111,7 @@ spec: - name: app ## Remember to change cron container version! - image: ghcr.io/0ranki/nextcloud-previews/nextcloud:latest + image: ghcr.io/0ranki/nextcloud-previews:latest ## Remember to change cron container version! #imagePullPolicy: never ports: @@ -134,7 +134,7 @@ spec: - name: cron # Remember to change main image version! - image: ghcr.io/0ranki/nextcloud-previews/nextcloud:latest + image: ghcr.io/0ranki/nextcloud-previews:latest # Remember to change main image version! #imagePullPolicy: never args: