Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
fix: update action from main repo (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo authored Mar 4, 2023
1 parent 5db5cac commit b3d04db
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '**.md'
- '**.txt'
schedule:
- cron: '20 20 * * *' # 8:20pm everyday
- cron: '21 20 * * *' # 9:20pm everyday
push:
branches:
- main
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
image_name: [main]
image_name: [ubuntu]
major_version: [37]
include:
- major_version: 37
Expand All @@ -42,7 +42,7 @@ jobs:

- name: Matrix Variables
run: |
echo "IMAGE_NAME=${{ format('{0}-{1}', matrix.image_name, env.IMAGE_BASE_NAME) }}" >> $GITHUB_ENV
echo "IMAGE_NAME=${{ format('{1}', matrix.image_name, env.IMAGE_BASE_NAME) }}" >> $GITHUB_ENV
- name: Generate tags
id: generate-tags
Expand Down Expand Up @@ -92,11 +92,11 @@ jobs:
id: meta
with:
images: |
$IMAGE_BASE_NAME
${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.title=$IMAGE_BASE_NAME
org.opencontainers.image.description=Fedora Silverblue for Ubuntu Expatriates
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/ubuntu/ubuntu/README.md
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.description=A base ${{ env.IMAGE_NAME }} image with batteries included
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/main/main/README.md
io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4
# Build image using Buildah action
Expand All @@ -106,11 +106,11 @@ jobs:
with:
containerfiles: |
./Containerfile
image: ubuntu
image: ${{ env.IMAGE_NAME }}
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
build-args: |
IMAGE_NAME=ubuntu
IMAGE_NAME=${{ matrix.image_name }}
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
labels: ${{ steps.meta.outputs.labels }}
oci: false
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
run: |
echo "${{ env.COSIGN_PRIVATE_KEY }}" > cosign.key
wc -c cosign.key
cosign sign -y --key cosign.key ${{ steps.registry_case.outputs.lowercase }}/ubuntu@${TAGS}
cosign sign -y --key cosign.key ${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}@${TAGS}
env:
TAGS: ${{ steps.push.outputs.digest }}
COSIGN_EXPERIMENTAL: false
Expand All @@ -167,3 +167,4 @@ jobs:
if: github.event_name != 'pull_request'
run: |
echo "${{ toJSON(steps.push.outputs) }}"

0 comments on commit b3d04db

Please sign in to comment.