32 lines
796 B
YAML
32 lines
796 B
YAML
on:
|
|
push:
|
|
branches: [master]
|
|
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
|
|
username: tymur999
|
|
password: ${{ secrets.OCI_TOKEN }}
|
|
|
|
- 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 }}
|