iterating #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ACT Build Init | |
runs: | |
using: "composite" | |
steps: | |
- name: Set image tag for release | |
if: github.event_name == 'release' | |
run: | | |
echo "IMAGE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Set image tag for main | |
if: github.ref == 'refs/heads/main' && github.event_name != 'release' | |
run: | | |
echo "IMAGE_TAG=main_latest" >> $GITHUB_ENV | |
- name: Set image tag and expiration for dev | |
if: github.ref != 'refs/heads/main' && github.event_name != 'release' | |
run: | | |
export commit_hash=${{ github.sha }} | |
echo "IMAGE_TAG=${GITHUB_REF##*/}_${commit_hash:0:7}" >> $GITHUB_ENV | |
echo "QUAY_IMG_EXP=90d" >> $GITHUB_ENV | |
- name: Checkout this project | |
uses: actions/checkout@v4 | |
- name: arcaflow-container-toolkit-action | |
uses: arcalot/[email protected] | |
with: | |
image_name: ${{ inputs.image_name }} | |
image_tag: ${{ inputs.image_tag }} | |
github_username: ${{ inputs.github_username }} | |
github_password: ${{ secrets.GITHUB_TOKEN }} | |
github_namespace: ${{ inputs.github_namespace }} | |
quay_username: ${{ secrets.QUAY_USERNAME }} | |
quay_password: ${{ secrets.QUAY_PASSWORD }} | |
quay_namespace: ${{ secrets.QUAY_NAMESPACE }} | |
quay_custom_namespace: ${{ inputs.quay_custom_namespace }} | |
quay_img_exp: ${{ inputs.quay_img_exp }} | |
build_timeout: ${{ inputs.build_timeout }} | |
archetype: ${{ inputs.archetype }} | |
req_check_only: ${{ inputs.multi_arch }} | |
- name: Install qemu dependency | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y qemu-user-static | |
- name: Log in to quay.io for multi-arch | |
if: ${{ inputs.multi_arch }} | |
uses: redhat-actions/podman-login@v1 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} |