forked from hackforla/food-oasis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployFullstackToDockerHub.yaml
More file actions
34 lines (34 loc) · 1.02 KB
/
Copy pathdeployFullstackToDockerHub.yaml
File metadata and controls
34 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# build and push a docker image from the latest push to "develop" branch
# this script is not currently used, as the web app is running on Heroku
on:
push:
branches:
- main
- develop
release:
types:
- published
jobs:
fullstack:
runs-on: ubuntu-latest
name: Build and push Full-Stack Container to Docker Hub
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build-and-push-image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
foodoasisla/foodoasisla:${{ github.ref_name }}
foodoasisla/foodoasisla:${{ github.sha }}
labels: |
description=Food Oasis
maintained=foodoasis+hub@hackforla.org