Skip to content

Update nextcloud:27.1.10-fpm Docker digest to ce97f34 #485

Update nextcloud:27.1.10-fpm Docker digest to ce97f34

Update nextcloud:27.1.10-fpm Docker digest to ce97f34 #485

Workflow file for this run

name: Build and publish
on:
push:
branches:
- "main"
env:
IMAGE_NAME: metabotter/nextcloud
jobs:
lint_dockerfile:
runs-on: ubuntu-latest
container: hadolint/hadolint:latest-debian
steps:
- name: Checkout
uses: actions/checkout@v2
- name: hadolint
run: |
hadolint --version
hadolint */Dockerfile
nextcloud_24:
runs-on: ubuntu-latest
needs:
- lint_dockerfile
env:
VERSION: "24"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get version number
run: |
VER=$(grep "FROM nextcloud:" ${{ env.VERSION }}/Dockerfile)
VER=${VER#*:}
VER=${VER%@*}
VER=${VER%-*}
echo "IMAGE_VERSION=$VER" >> $GITHUB_ENV
- name: Build and publish
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: ${{ env.VERSION }}/Dockerfile
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION }}"
nextcloud_25:
runs-on: ubuntu-latest
needs:
- lint_dockerfile
env:
VERSION: "25"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get version number
run: |
VER=$(grep "FROM nextcloud:" ${{ env.VERSION }}/Dockerfile)
VER=${VER#*:}
VER=${VER%@*}
VER=${VER%-*}
echo "IMAGE_VERSION=$VER" >> $GITHUB_ENV
- name: Build and publish
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: ${{ env.VERSION }}/Dockerfile
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION }}"
nextcloud_26:
runs-on: ubuntu-latest
needs:
- lint_dockerfile
env:
VERSION: "26"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get version number
run: |
VER=$(grep "FROM nextcloud:" ${{ env.VERSION }}/Dockerfile)
VER=${VER#*:}
VER=${VER%@*}
VER=${VER%-*}
echo "IMAGE_VERSION=$VER" >> $GITHUB_ENV
- name: Build and publish
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: ${{ env.VERSION }}/Dockerfile
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION }}"
nextcloud_27:
runs-on: ubuntu-latest
needs:
- lint_dockerfile
env:
VERSION: "27"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get version number
run: |
VER=$(grep "FROM nextcloud:" ${{ env.VERSION }}/Dockerfile)
VER=${VER#*:}
VER=${VER%@*}
VER=${VER%-*}
echo "IMAGE_VERSION=$VER" >> $GITHUB_ENV
- name: Build and publish
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: ${{ env.VERSION }}/Dockerfile
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION }}"