feat(ci/cd): Automatically build image, archive upstream workflows
Some checks failed
Build / build (push) Failing after 46s
Some checks failed
Build / build (push) Failing after 46s
This commit is contained in:
parent
7e2a6604dd
commit
d800394eb9
48
.gitea/workflows/build.yml
Normal file
48
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,48 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 1"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Extract Version Tag
|
||||
id: extract-version
|
||||
run: |
|
||||
git clone https://github.com/ONLYOFFICE/DocumentServer
|
||||
cd DocumentServer
|
||||
echo "docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-") >> GITHUB_OUTPUT
|
||||
cd .. && rm -rf DocumentServer
|
||||
shell: bash
|
||||
|
||||
- name: Install Docker
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install docker.io -y
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
# driver-opts: network=host
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: jiriks74/onlyoffice-documentserver:${{ steps.extract-version.outputs.docker_tag }},jiriks74/onlyoffice-documentserver:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
context: .
|
||||
file: ./Dockerfile
|
Loading…
x
Reference in New Issue
Block a user