Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Oct 17, 2023
2 parents b90373c + 62b64e4 commit 0242016
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and push

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push the Docker image
run: EPOCH=$(date +%s) && docker build . --file Dockerfile --tag houbystudio/small-business-fridge:$EPOCH && docker push houbystudio/small-business-fridge:$EPOCH

0 comments on commit 0242016

Please sign in to comment.