alpine-s6/.gitea/workflows/container.yaml

26 lines
763 B
YAML
Raw Normal View History

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 22:29:11 +00:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
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 }}