Jack O'Sullivan
8b3fa6b075
Some checks failed
Build and push / Build and push images (push) Failing after 19s
34 lines
824 B
YAML
34 lines
824 B
YAML
name: Build and push
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and push images
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install buildah
|
|
run: |
|
|
apt-get -y update
|
|
apt-get -y install buildah
|
|
|
|
- name: Build Ubuntu 22.04
|
|
id: build
|
|
uses: redhat-actions/buildah-build@v2
|
|
with:
|
|
image: git.nul.ie/dev/actions-ubuntu
|
|
tags: '22.04'
|
|
containerfiles: |
|
|
ubuntu.Containerfile
|
|
- name: Push Ubuntu 22.04
|
|
uses: redhat-actions/push-to-registry@v2
|
|
with:
|
|
image: ${{ steps.build.outputs.image }}
|
|
tags: ${{ steps.build.outputs.tags }}
|
|
registry: git.nul.ie
|
|
username: dev
|
|
password: ${{ secrets.PUSH_TOKEN }}
|