Update .forgejo/workflows/build.yml
This commit is contained in:
parent
d7f8271b5a
commit
6d3166aa93
1 changed files with 15 additions and 15 deletions
|
@ -108,7 +108,7 @@ jobs:
|
||||||
uses: https://github.com/hhd-dev/rechunk@f153348d8100c1f504dec435460a0d7baf11a9d2 # v1.1.1
|
uses: https://github.com/hhd-dev/rechunk@f153348d8100c1f504dec435460a0d7baf11a9d2 # v1.1.1
|
||||||
with:
|
with:
|
||||||
rechunk: 'ghcr.io/hhd-dev/rechunk:v1.0.1'
|
rechunk: 'ghcr.io/hhd-dev/rechunk:v1.0.1'
|
||||||
ref: "localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}"
|
ref: "raw-img"
|
||||||
prev-ref: "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}"
|
prev-ref: "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}"
|
||||||
skip_compression: true
|
skip_compression: true
|
||||||
version: ${{ env.CENTOS_VERSION }}
|
version: ${{ env.CENTOS_VERSION }}
|
||||||
|
@ -133,7 +133,7 @@ jobs:
|
||||||
# username: ${{ github.actor }}
|
# username: ${{ github.actor }}
|
||||||
# password: ${{ secrets.GITHUB_TOKEN }}
|
# password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry and push
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login rievo.dev -u ${{ github.actor }} --password-stdin
|
echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login rievo.dev -u ${{ github.actor }} --password-stdin
|
||||||
podman push "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}"
|
podman push "${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}"
|
||||||
|
@ -152,19 +152,19 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# string: ${{ env.IMAGE_NAME }}
|
# string: ${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Push To GHCR
|
# - name: Push To GHCR
|
||||||
uses: https://github.com/redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
|
# uses: https://github.com/redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
|
||||||
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
# if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||||
id: push
|
# id: push
|
||||||
env:
|
# env:
|
||||||
REGISTRY_USER: ${{ github.actor }}
|
# REGISTRY_USER: ${{ github.actor }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
# REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
# with:
|
||||||
registry: ${{ env.IMAGE_REGISTRY }}
|
# registry: ${{ env.IMAGE_REGISTRY }}
|
||||||
image: ${{ env.IMAGE_NAME }}
|
# image: ${{ env.IMAGE_NAME }}
|
||||||
tags: ${{ steps.metadata.outputs.tags }}
|
# tags: ${{ steps.metadata.outputs.tags }}
|
||||||
username: ${{ env.REGISTRY_USER }}
|
# username: ${{ env.REGISTRY_USER }}
|
||||||
password: ${{ env.REGISTRY_PASSWORD }}
|
# password: ${{ env.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
# This section is optional and only needs to be enabled if you plan on distributing
|
# This section is optional and only needs to be enabled if you plan on distributing
|
||||||
# your project for others to consume. You will need to create a public and private key
|
# your project for others to consume. You will need to create a public and private key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue