26 lines
763 B
YAML
26 lines
763 B
YAML
name: Build Container Image
|
|
on: [push]
|
|
jobs:
|
|
build-container:
|
|
runs-on: buildah-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- 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
|
|
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 }}
|