Skip to content

check-build-tags

check-build-tags #687

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: check-build-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:
tag:
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
# 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
# Runs a set of commands using the runners shell
- name: Run build
env:
DOCKER_NAME: gsdukbh
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
MAIL: ${{ secrets.MAIL }}
MY_NAME: ${{ secrets.MY_NAME}}
run: |
chmod +x check-version.sh build.sh
sudo git fetch --tags && ./check-version.sh && ./build.sh
sudo git push --tags https://gsdukbh:{{secrets.MY_GIT_TOKEN}}@github.com/gsdukbh/docker-gitlab-ee-arm64.git
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_GIT_TOKEN }}
branch: main