2023-12-12 18:16:38 +00:00
|
|
|
name: Build Container Image
|
2023-12-12 17:57:15 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2023-12-12 18:16:38 +00:00
|
|
|
build-container:
|
2023-12-12 18:56:18 +00:00
|
|
|
runs-on: buildah-latest
|
2023-12-12 17:57:15 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2023-12-12 18:12:05 +00:00
|
|
|
- name: Build image
|
|
|
|
id: build-image
|
|
|
|
uses: redhat-actions/buildah-build@v2
|
|
|
|
with:
|
|
|
|
image: docker.io/thallian/alpine-s6
|
2023-12-12 18:16:38 +00:00
|
|
|
tags: ${{ gitea.ref_name }} ${{ gitea.sha }} latest
|
2023-12-12 23:34:53 +00:00
|
|
|
platforms: linux/aarch64, linux/x86_64
|
2023-12-12 18:12:05 +00:00
|
|
|
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 }}
|