Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Merge pull request #103 from swibly/develop #44

Merge pull request #103 from swibly/develop

Merge pull request #103 from swibly/develop #44

name: Build and Push Docker Image (Production)
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/swibly-api:latest