Update README.md #3
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 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 |