Skip to content

Allow job to write packages #27

Allow job to write packages

Allow job to write packages #27

Workflow file for this run

name: CI/CD
on: push
jobs:
devimage:
name: Build and release development image
env:
version: 7.5.0
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build development image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: naosdk
tags: ${{ env.version }} ${{ github.sha }}
archs: amd64, arm64
containerfiles: ./Containerfile
build-args: version=${{ env.version }}
- name: Push development 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/hulks
username: ${{ github.actor }}
password: ${{ github.token }}