Skip to content

WIP again

WIP again #5

Workflow file for this run

name: build
on:
push:
branches:
- rhbq-3.2
permissions:
packages: write
concurrency:
group: build
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set datetime
run: |
echo "datetime=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
- name: log in registry.redhat.io
uses: redhat-actions/podman-login@v1
with:
registry: registry.redhat.io
username: ${{ secrets.REGISTRY_REDHAT_IO_USER }}
password: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }}
- name: build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: developer-image
tags: latest ${{ github.ref_name }}
context: .
containerfiles: |
./container/Containerfile
build-args: |
CREATED_AT=${{ env.datetime }}
GITHUB_SHA=${{ github.sha }}
- name: push image to ghcr.io
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/redhat-gpte-devopsautomation
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}