Skip to content

Allowed triggering the workflow manually. #2

Allowed triggering the workflow manually.

Allowed triggering the workflow manually. #2

name: Docker Deployment Pipeline
on:
push:
branches:
- main
- github-actions
pull_request:
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Checkout Code
- name: Checkout repository
uses: actions/checkout@v4
# TEST: GitHub Actions variables
- name: Echoes DockerHub Username
run: echo "${{ secrets.DOCKERHUB_USERNAME }}"
- name: Echoes DockerHub Token
run: echo "${{ secrets.DOCKERHUB_TOKEN }}"