Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
770e7d441f | ||
|
|
020c4ed5bc | ||
|
|
f0f779ac4b | ||
|
|
c8d9717f5b |
@@ -8,7 +8,7 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -19,17 +19,21 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: gitea.viaproger.ru
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.registry_password }}
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
docker build -t ghcr.io/igorvolochay/my-image:latest .
|
docker build -t gitea.viaproger.ru/${{ github.actor }}/my-image:latest .
|
||||||
|
|
||||||
- name: Push Docker image
|
push:
|
||||||
run: |
|
needs: build
|
||||||
docker push ghcr.io/igorvolochay/my-image:latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Push Docker image
|
||||||
|
run: |
|
||||||
|
docker push gitea.viaproger.ru/${{ github.actor }}/my-image:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user