π feat: Upgrade Nextcloud version to 30.0.4 (#32) #4
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 release for nextcloud-with-smbclient" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "nextcloud-with-smbclient/**" | |
jobs: | |
create: | |
name: "Creates the newest release by version" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout project | |
uses: actions/[email protected] | |
# New step to read the VERSION file and set the version as an output | |
- name: Get the version | |
id: get_version | |
run: echo "nextcloud_with_smbclient_version=$(cat nextcloud-with-smbclient/VERSION)" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@master | |
with: | |
platforms: all | |
- name: Set up Docker Build | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
context: ./nextcloud-with-smbclient | |
file: ./nextcloud-with-smbclient/Dockerfile | |
tags: | | |
bigbeartechworld/big-bear-nextcloud-with-smbclient:latest | |
bigbeartechworld/big-bear-nextcloud-with-smbclient:${{ env.nextcloud_with_smbclient_version }} |