Add COMMAND env variable support for shell command

This commit is contained in:
2025-11-06 14:45:15 +01:00
parent 1f0cd36375
commit 8e6cbe38f0
4 changed files with 7 additions and 12 deletions

View File

@@ -0,0 +1,27 @@
name: Build and Push Docker Image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: dcorral/ssh-remote:latest