Deploy: Linux cross-compile & Action workflow
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
parent
d0d26171f0
commit
fa3fcc1b16
1 changed files with 37 additions and 0 deletions
37
.github/workflows/docker-publish.yml
vendored
Normal file
37
.github/workflows/docker-publish.yml
vendored
Normal 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
|
||||
Loading…
Reference in a new issue