Skip to content

Update README.md

Update README.md #3

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
- name: Build Docker Image
run: docker build -t openbalena-admin_postgrest_1 .
- name: Tag Docker Image
run: docker tag openbalena-admin_postgrest_1 giuseppe442/open-balena-postgrest:latest
- name: Push Docker Image
run: docker push giuseppe442/open-balena-postgrest:latest