mirror of
https://github.com/openvk/openvk
synced 2024-11-14 19:19:14 +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=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
# - name: Log into registry
|
||||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- name: Log into registry
|
||||
if: github.event_name != 'pull_request'
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Build base image
|
||||
uses: docker/build-push-action@v6
|
||||
|
@ -56,6 +57,7 @@ jobs:
|
|||
file: install/automated/docker/openvk.Dockerfile
|
||||
tags: ${{ steps.basemeta.outputs.tags }}
|
||||
labels: ${{ steps.basemeta.outputs.labels }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
build-args: |
|
||||
GITREPO=${{ steps.repositorystring.outputs.lowercase }}
|
||||
|
||||
|
@ -115,12 +117,14 @@ jobs:
|
|||
type=ref,event=tag,prefix=${{env.DB_VERSION}}-eventdb-
|
||||
type=raw,value=${{env.DB_VERSION}}-eventdb,enable={{is_default_branch}}
|
||||
|
||||
# - name: Log into registry
|
||||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- name: Log into registry
|
||||
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
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/${{matrix.platform}}
|
||||
file: install/automated/docker/mariadb-primary.Dockerfile
|
||||
tags: ${{ steps.db-primarymeta.outputs.tags }}
|
||||
|
@ -131,6 +135,7 @@ jobs:
|
|||
- name: Build MariaDB event image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/${{matrix.platform}}
|
||||
file: install/automated/docker/mariadb-eventdb.Dockerfile
|
||||
tags: ${{ steps.db-eventmeta.outputs.tags }}
|
||||
|
|
Loading…
Reference in a new issue