try to build multiarch with buildah

This commit is contained in:
Sebastian Hugentobler 2023-12-12 19:12:05 +01:00
parent 231ace296d
commit fc77fb0628
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -1,19 +1,25 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: docker.io/thallian/alpine-s6
tags: ${{ gitea.ref_name }} latest
archs: amd64
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 }}