feat: create initial action implementation #2
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
test-single-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Sample Image | |
working-directory: test | |
run: podman build -t sample-image:local . | |
- name: Push (Single) | |
uses: ./ | |
with: | |
image: sample-image:local | |
manifest-tags: ${{ github.sha }}-${{ github.run_number }} | |
registry: ghcr.io/${{ github.repository }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Inspect Image | |
env: | |
MANIFEST_TAG: ${{ github.sha }}-${{ github.run_number }} | |
REGISTRY: ghcr.io/${{ github.repository }} | |
IMAGE: sample-image | |
run: skopeo inspect --raw docker://${REGISTRY}/${IMAGE}:${MANIFEST_TAG} | jq . |