Skip to content

Merge pull request #7 from ryojp/dependabot/go_modules/golang.org/x/n… #8

Merge pull request #7 from ryojp/dependabot/go_modules/golang.org/x/n…

Merge pull request #7 from ryojp/dependabot/go_modules/golang.org/x/n… #8

Workflow file for this run

name: Publish image to Docker Hub
on:
workflow_dispatch:
push:
branches:
- main
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ryojpn
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: .
file: ./Dockerfile
push: true
tags: ryojpn/nutrition-api:latest