Skip to content

check-tags

check-tags #52

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: check-tags
# Controls when the workflow will run
on:
schedule:
- cron: '0 0 */1 * *'
# Triggers the workflow on push or pull request events but only for the main branch
# push:
# branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
ssh:
description: "SSH connection to Actions"
required: false
default: "false"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
environment: token
permissions:
contents: write
packages: write
pull-requests: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- 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 docker Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Runs a set of commands using the runners shell
- name: Run a multi-line script
env:
DOCKER_NAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
MAIL: ${{ secrets.MAIL }}
MY_NAME: ${{ secrets.MY_NAME}}
run: |
chmod +x check-version.sh build.sh a2-tracker.sh
docker buildx build --tag scjtqs/nextcloud:alpine --platform linux/amd64,linux/arm64 --push -f Dockerfile.fpm.alpine . || exit 1
sudo git fetch --tags && ./a2-tracker.sh && ./check-version.sh && ./build.sh
sudo git push --tags https://scjtqs2:{{secrets.GITHUB_TOKEN}}@github.com/scjtqs2/nextcloud-docker.git
sudo git checkout -- ./Dockerfile.fpm.alpine && sudo git checkout -- ./Dockerfile
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master