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:34:30 +00:00
|
|
|
runs-on: buildah
|
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 18:12:05 +00:00
|
|
|
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 }}
|