Skip to content

Instantly share code, notes, and snippets.

@carlos-a-g-h
Created January 30, 2023 15:42
Show Gist options
  • Save carlos-a-g-h/1b329ce42ecfbc9dc0f96660aff199f8 to your computer and use it in GitHub Desktop.
Save carlos-a-g-h/1b329ce42ecfbc9dc0f96660aff199f8 to your computer and use it in GitHub Desktop.
name: Dockerhub Publisher
on:
workflow_dispatch:
inputs:
REPO_N:
description: Github and Dockerhub repo name (without user)
required: true
type: string
REPO_B:
description: Github repo branch
required: true
type: string
default: "main"
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Download repo
run: |
wget "https://gist.github.com/carlos-a-g-h/9ca598a21ea74200aa91f7e5b7d846cb/raw/script_github_Fetch_Repo.sh" -O script.sh
bash script.sh "${{ secrets.GH_TOKEN }}" "$GITHUB_ACTOR" "${{ inputs.REPO_N }}" "${{ inputs.REPO_B }}" repodir
rm script.sh
printf "\n[Repo files]\n"
find
- name: Publish image
run: |
wget "https://gist.github.com/carlos-a-g-h/d18c74b7d30bf40900a4d9e9370e942b/raw/script_docker_Publish_Image.sh" -O script.sh
bash script.sh "${{ secrets.DK_USER }}" "${{ secrets.DK_PASS }}" "${{ inputs.REPO_N }}" repodir
rm script.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment