Update nextcloud:27.1.9-fpm Docker digest to d6b7e29 #480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |