aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker-image.yml
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-17 01:33:20 -0500
committerGitHub <noreply@github.com>2024-02-17 01:33:20 -0500
commit30cf5d39306290d783ab1739aaac369fec69f51d (patch)
treec2ef615697c2dcceb15712a2bfccfa99f7df1e07 /.github/workflows/docker-image.yml
parente4fcb327ce6e7a0bf9f5b7560af5e611a1d48d12 (diff)
downloadDLAP-30cf5d39306290d783ab1739aaac369fec69f51d.tar.gz
DLAP-30cf5d39306290d783ab1739aaac369fec69f51d.tar.bz2
DLAP-30cf5d39306290d783ab1739aaac369fec69f51d.zip
Update docker-image.yml
Diffstat (limited to '.github/workflows/docker-image.yml')
-rw-r--r--.github/workflows/docker-image.yml23
1 files changed, 14 insertions, 9 deletions
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index c26a12b..f6c074c 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -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