Deploy: Linux cross-compile & Action workflow
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
Khoa Vo 2026-02-07 22:37:08 +07:00
parent d0d26171f0
commit fa3fcc1b16

37
.github/workflows/docker-publish.yml vendored Normal file
View file

@ -0,0 +1,37 @@
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