Skip to content

Commit

Permalink
add action to push to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
taeyeong2k committed Sep 25, 2024
1 parent 51b2125 commit 43fc1df
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI
name: Docker Build, Push and Release

on:
push:
Expand All @@ -8,11 +8,25 @@ on:

jobs:

build:

build-push-and-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
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 Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sslhelper:latest

0 comments on commit 43fc1df

Please sign in to comment.