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