Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alee14 authored Feb 17, 2024
1 parent e4fcb32 commit 30cf5d3
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@ name: Docker Image CI
on:
push:
branches: [ "stable" ]
pull_request:
branches: [ "stable" ]

jobs:

build:

deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag dlap:$(date +%s)
# No changes

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: alee14498/dlap:latest

0 comments on commit 30cf5d3

Please sign in to comment.