Merge the two Github workflow

This commit is contained in:
Mo Tarbin 2024-12-15 18:13:35 -05:00
parent 4d1f401a15
commit 472e78fc5e
2 changed files with 59 additions and 42 deletions

View file

@ -10,6 +10,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push Docker Image
steps:
- name: Checkout Code
uses: actions/checkout@v4
@ -57,4 +58,20 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
# Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and tag Docker image
- name: Build Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/donetick:latest .
# Push Docker image
- name: Push Docker image
run: |
docker push ${{ secrets.DOCKER_USERNAME }}/donetick:latest