Skip to content

build-and-deploy-staging:eb757834-ebc0-40db-ac7c-2ceae2a53ff1 #8

build-and-deploy-staging:eb757834-ebc0-40db-ac7c-2ceae2a53ff1

build-and-deploy-staging:eb757834-ebc0-40db-ac7c-2ceae2a53ff1 #8

Workflow file for this run

name: build-and-deploy-staging
on:
workflow_dispatch:
inputs:
job_id:
description: 'The unique ID for tracking'
required: true
branches:
- dev
run-name: build-and-deploy-staging:${{ inputs.job_id }}
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set version tag
id: vars
run: echo "version=$(git log -1 --pretty=%h)" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/#-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: |
mark3labs/louper-web:staging-${{ steps.vars.outputs.version }}
mark3labs/louper-web:staging-latest