build docker image and push
This commit is contained in:
@@ -4,22 +4,28 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
image_build:
|
image_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Docker buildx setup
|
- name: Docker buildx setup
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Gitea OCI repo login
|
- name: Gitea OCI repo login
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.tymur999.com
|
registry: ghcr.io
|
||||||
username: tymur999
|
username: tymur999
|
||||||
password: ${{ secrets.OCI_REPO_KEY }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push rqbit
|
- name: Build and push tymur999.com
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
gitea.tymur999.com/tymur999/blog:latest
|
ghcr.io/tymur999/blog:latest
|
||||||
gitea.tymur999.com/tymur999/blog:nightly
|
ghcr.io/tymur999/blog:nightly
|
||||||
gitea.tymur999.com/tymur999/blog:${{ github.sha }}
|
ghcr.io/tymur999/blog:${{ github.sha }}
|
||||||
Reference in New Issue
Block a user