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

27 lines
862 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 18:12:05 +00:00
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
2023-12-13 00:18:46 +00:00
image: ${{ secrets.DOCKERHUB_USER }}/${{ gitea.repository }}
2023-12-13 00:13:57 +00:00
tags: ${{ gitea.ref_name }} ${{ gitea.sha }}
2023-12-12 23:55:56 +00:00
archs: arm64, amd64
2023-12-12 18:12:05 +00:00
containerfiles: |
./Containerfile
2023-12-13 00:11:44 +00:00
- name: Push to dockerhub
id: push-to-dockerhub
uses: redhat-actions/push-to-registry@v2
2023-12-12 18:12:05 +00:00
with:
2023-12-13 00:11:44 +00:00
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
2023-12-12 18:12:05 +00:00
registry: docker.io
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PW }}