update staging n prod compose #2
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: Compile and push client image | |
on: | |
push: | |
branches: ["staging"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# login with Docker | |
- uses: docker/login-action@v1 | |
name: Login to Docker Hub | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
# prepare buildx for docker | |
- uses: docker/setup-buildx-action@v1 | |
name: Set up Docker Buildx | |
# build an push the newly created image | |
- uses: docker/build-push-action@v2 | |
name: Build and push | |
with: | |
context: ./client | |
file: ./client/Dockerfile | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/staging_client_pawplanner:latest |