Skip to content

Build and Push Docker Image #10

Build and Push Docker Image

Build and Push Docker Image #10

name: Build and Push Docker Image
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: cwavesoftware
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./web
push: true
tags: cwavesoftware/rengine-web:latest
- name: Log out from Docker Hub
run: docker logout