Update github-actions-builddockerfile.yml

This commit is contained in:
McCloudS
2023-10-22 23:36:41 -06:00
committed by GitHub
parent 9677c4c651
commit a973c3b3a1

View File

@@ -1,2 +1,23 @@
- name: Build and push Docker images
uses: docker/build-push-action@v5.0.0
name: ci
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
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: user/app:latest