Skip to content

Merge pull request #2 from aldairjpalma/master #1

Merge pull request #2 from aldairjpalma/master

Merge pull request #2 from aldairjpalma/master #1

Workflow file for this run

name: Build and Tag Docker Image
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Environmental Variables
run: |
echo "GIT_SHA=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: |
itswebbibi/dadbot:latest
itswebbibi/dadbot:${{ env.GIT_SHA }}