diff --git a/.gitea/workflows/container.yaml b/.gitea/workflows/container.yaml index 37503c9..e48b3fd 100644 --- a/.gitea/workflows/container.yaml +++ b/.gitea/workflows/container.yaml @@ -1,23 +1,12 @@ -name: Build Container Image +name: Build Multiarch Container Image on: [push] jobs: - build-container: - runs-on: buildah-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - name: Build image - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: docker.io/thallian/alpine-s6 - tags: ${{ gitea.ref_name }} ${{ gitea.sha }} latest - platforms: linux/aarch64, linux/x86_64 - containerfiles: | - ./Containerfile - - name: Log in to Dockerhub - uses: redhat-actions/podman-login@v1 - with: - registry: docker.io - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_PW }} + call-reusable-workflow: + uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main + with: + repository: ${{ gitea.repository }} + ref_name: ${{ gitea.ref_name }} + sha: ${{ gitea.sha }} + registry_url: ${{ secrets.REGISTRY_URL }} + registry_user: ${{ secrets.REGISTRY_USER }} + registry_pw: ${{ secrets.REGISTRY_PW }} diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 13bf6c9..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,11 +0,0 @@ -pipeline: - publish-docker-image: - image: plugins/kaniko - settings: - repo: docker.io/thallian/alpine-s6 - tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre} - dockerfile: Dockerfile - username: - from_secret: DOCKER_USER - password: - from_secret: DOCKER_PW \ No newline at end of file