27 lines
844 B
YAML
27 lines
844 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: 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: arm64, amd64
|
|
containerfiles: |
|
|
./Containerfile
|
|
- name: Push to dockerhub
|
|
id: push-to-dockerhub
|
|
uses: redhat-actions/push-to-registry@v2
|
|
with:
|
|
image: ${{ steps.build-image.outputs.image }}
|
|
tags: ${{ steps.build-image.outputs.tags }}
|
|
registry: docker.io
|
|
username: ${{ secrets.DOCKERHUB_USER }}
|
|
password: ${{ secrets.DOCKERHUB_PW }}
|