Bump actions/checkout from 3 to 4 #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and push | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Docker Login | |
# You may pin to the exact commit or the version. | |
# uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d | |
uses: docker/[email protected] | |
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 |