mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
ci(actions): return pushing to registry
This commit is contained in:
parent
b9e6878a0e
commit
7fc51e422b
1 changed files with 9 additions and 4 deletions
13
.github/workflows/build.yaml
vendored
13
.github/workflows/build.yaml
vendored
|
@ -46,8 +46,9 @@ jobs:
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
# - name: Log into registry
|
- name: Log into registry
|
||||||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
if: github.event_name != 'pull_request'
|
||||||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build base image
|
- name: Build base image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
@ -56,6 +57,7 @@ jobs:
|
||||||
file: install/automated/docker/openvk.Dockerfile
|
file: install/automated/docker/openvk.Dockerfile
|
||||||
tags: ${{ steps.basemeta.outputs.tags }}
|
tags: ${{ steps.basemeta.outputs.tags }}
|
||||||
labels: ${{ steps.basemeta.outputs.labels }}
|
labels: ${{ steps.basemeta.outputs.labels }}
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
build-args: |
|
build-args: |
|
||||||
GITREPO=${{ steps.repositorystring.outputs.lowercase }}
|
GITREPO=${{ steps.repositorystring.outputs.lowercase }}
|
||||||
|
|
||||||
|
@ -115,12 +117,14 @@ jobs:
|
||||||
type=ref,event=tag,prefix=${{env.DB_VERSION}}-eventdb-
|
type=ref,event=tag,prefix=${{env.DB_VERSION}}-eventdb-
|
||||||
type=raw,value=${{env.DB_VERSION}}-eventdb,enable={{is_default_branch}}
|
type=raw,value=${{env.DB_VERSION}}-eventdb,enable={{is_default_branch}}
|
||||||
|
|
||||||
# - name: Log into registry
|
- name: Log into registry
|
||||||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
if: github.event_name != 'pull_request'
|
||||||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build MariaDB primary image
|
- name: Build MariaDB primary image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
platforms: linux/${{matrix.platform}}
|
platforms: linux/${{matrix.platform}}
|
||||||
file: install/automated/docker/mariadb-primary.Dockerfile
|
file: install/automated/docker/mariadb-primary.Dockerfile
|
||||||
tags: ${{ steps.db-primarymeta.outputs.tags }}
|
tags: ${{ steps.db-primarymeta.outputs.tags }}
|
||||||
|
@ -131,6 +135,7 @@ jobs:
|
||||||
- name: Build MariaDB event image
|
- name: Build MariaDB event image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
platforms: linux/${{matrix.platform}}
|
platforms: linux/${{matrix.platform}}
|
||||||
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
||||||
tags: ${{ steps.db-eventmeta.outputs.tags }}
|
tags: ${{ steps.db-eventmeta.outputs.tags }}
|
||||||
|
|
Loading…
Reference in a new issue