spotify-clone/.github/workflows/docker-publish.yml
Khoa Vo fa3fcc1b16
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Deploy: Linux cross-compile & Action workflow
2026-02-07 22:37:08 +07:00

37 lines
888 B
YAML

name: Build and Publish Docker Image
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: git.khoavo.myds.me
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.khoavo.myds.me/vndangkhoa/spotify-clone:v3
git.khoavo.myds.me/vndangkhoa/spotify-clone:latest
platforms: linux/amd64