Use forgejo-build-publish instead
Some checks failed
upload / upload (push) Failing after 39s
Some checks failed
upload / upload (push) Failing after 39s
This commit is contained in:
parent
c542e1abe7
commit
320eaefd09
1 changed files with 21 additions and 18 deletions
|
@ -11,22 +11,25 @@ jobs:
|
||||||
upload:
|
upload:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Setup system
|
- name: Build container
|
||||||
run: |
|
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/build@v1
|
||||||
apt update
|
|
||||||
apt upgrade -y
|
|
||||||
apt install -y docker
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: https://code.forgejo.org/docker/setup-qemu-action@v3
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
|
||||||
- name: Login to StarOpenSource Git
|
|
||||||
uses: https://code.forgejo.org/docker/login-action@v3
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
||||||
- name: Build and push
|
repository: "${{ steps.repository.outputs.value }}"
|
||||||
uses: https://code.forgejo.org/docker/build-push-action@v6
|
doer: "${{ secrets.REGISTRY_USERNAME }}"
|
||||||
|
token: "${{ secrets.REGISTRY_TOKEN }}"
|
||||||
|
tag-version: "latest"
|
||||||
|
platforms: linux/amd64
|
||||||
|
binary-name: sh
|
||||||
|
binary-path: /bin/sh
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
- name: Publish container
|
||||||
|
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/publish@v1
|
||||||
with:
|
with:
|
||||||
push: true
|
from-forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
||||||
tags: staropensource/actions-docker:latest
|
from-owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
||||||
|
to-forgejo: "${{ env.GITHUB_SERVER_URL }}"
|
||||||
|
to-owner: "${{ env.GITHUB_REPOSITORY_OWNER }}"
|
||||||
|
to-doer: "${{ secrets.REGISTRY_USERNAME }}"
|
||||||
|
to-token: "${{ secrets.REGISTRY_TOKEN }}"
|
||||||
|
|
Loading…
Reference in a new issue