Skip to content

Commit

Permalink
Merge pull request #25 from gazok/hw1186-patch-1
Browse files Browse the repository at this point in the history
Create action.yaml
  • Loading branch information
limjung99 authored Nov 28, 2023
2 parents a5a3039 + b2391bd commit f47933a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Build and Push

on:
push:
branches:
- master

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: yourusername/yourrepo:latest

0 comments on commit f47933a

Please sign in to comment.