gecho/.gitea/workflows/build-and-push.yaml
2023-08-29 16:49:26 +02:00

29 lines
565 B
YAML

name: Build Image using Dockerfile
on:
push:
branches:
- main
jobs:
build:
name: Build image
runs-on: ubuntu-latest
steps:
- name: Setup Buildah
run: |
apt -y update
apt -y install buildah
- uses: actions/checkout@v3
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: my-new-image
tags: latest ${{ github.sha }}
containerfiles: |
./Dockerfile
build-args: |
TARGETARCH=amd64
BUILD_DATE=$(date +%Y%m%d%H%M)